moved these to includes
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40423
This commit is contained in:
parent
3091462dff
commit
619c15cac9
@ -15,6 +15,9 @@ new AdminFlag:g_FlagLetters[26]; /* Maps the flag letters */
|
||||
new bool:g_LoggedFileName = false; /* Whether or not the file name has been logged */
|
||||
new g_ErrorCount = 0;
|
||||
|
||||
#include "admin-levels.sp"
|
||||
#include "admin-overrides.sp"
|
||||
|
||||
public OnRebuildAdminCache(cache_flags)
|
||||
{
|
||||
RefreshLevels();
|
||||
|
@ -52,6 +52,12 @@ public SMCResult:ReadOverrides_KeyValue(Handle:smc,
|
||||
|
||||
new AdminFlag:flag = Admin_None;
|
||||
|
||||
if (strlen(value) > 1)
|
||||
{
|
||||
LogOverrideError("Unrecognized access level: %s", value);
|
||||
return SMCParse_Continue;
|
||||
}
|
||||
|
||||
if (value[0] >= 'a' && value[0] <= 'z')
|
||||
{
|
||||
flag = g_FlagLetters[value[0] - 'a'];
|
||||
|
Loading…
Reference in New Issue
Block a user