add support of modes
This commit is contained in:
@@ -79,9 +79,9 @@ namespace PacksManager {
|
||||
|
||||
const PackConfig@ Config = PacksManager::GetConfig(Id);
|
||||
|
||||
// TODO Check ModePattern
|
||||
if (Regex::IsMatch(ServerInfo.CurScriptRelName, Config.ModePattern)) {
|
||||
print('match');
|
||||
|
||||
if (!Config.ModeMatch(string(ServerInfo.CurScriptRelName))) {
|
||||
continue;
|
||||
}
|
||||
|
||||
for (uint j = 0; j < Config.UnloadModules.Length; j++) {
|
||||
|
Reference in New Issue
Block a user