diff options
Diffstat (limited to 'plugins/MirLua/src/main.cpp')
-rw-r--r-- | plugins/MirLua/src/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/MirLua/src/main.cpp b/plugins/MirLua/src/main.cpp index ce1fa50de9..35d572a4c7 100644 --- a/plugins/MirLua/src/main.cpp +++ b/plugins/MirLua/src/main.cpp @@ -56,7 +56,8 @@ void LoadScripts(const TCHAR *scriptDir) {
mir_sntprintf(fullPath, _T("%s\\%s"), scriptDir, fd.cFileName);
PathToRelativeT(fullPath, path);
- mLua->Load(T2Utf(path));
+ if (db_get_b(NULL, MODULE, _T2A(fd.cFileName), 1))
+ mLua->Load(T2Utf(path));
}
} while (FindNextFile(hFind, &fd));
FindClose(hFind);
|