moved these to includes

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40423
This commit is contained in:
David Anderson 2007-01-30 00:38:15 +00:00
parent 3091462dff
commit 619c15cac9
2 changed files with 9 additions and 0 deletions

View File

@ -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();

View File

@ -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'];