flag y (ADMIN_ADMIN) is not set anymore

This commit is contained in:
Felix Geyer 2004-07-24 11:03:51 +00:00
parent 5a93f4a80b
commit 17c00abbde

View File

@ -32,7 +32,8 @@
* version. * version.
*/ */
#define USING_SQL 1 // comment for non-mysql version
#define USING_SQL
#include <amxmodx> #include <amxmodx>
#include <amxmisc> #include <amxmisc>
@ -40,7 +41,7 @@
#include <dbi> #include <dbi>
#endif #endif
#define MAX_ADMINS 64 #define MAX_ADMINS 64
new g_aPassword[MAX_ADMINS][32] new g_aPassword[MAX_ADMINS][32]
new g_aName[MAX_ADMINS][32] new g_aName[MAX_ADMINS][32]
@ -178,12 +179,7 @@ public adminSql() {
dbi_result(Res, "access", szAccess, 31) dbi_result(Res, "access", szAccess, 31)
dbi_result(Res, "flags", szFlags, 31) dbi_result(Res, "flags", szFlags, 31)
if ( (containi(szAccess,"z")==-1) && (containi(szAccess,"y")==-1) )
szAccess[strlen(szAccess)] = 'y'
g_aAccess[ g_aNum ] = read_flags( szAccess ) g_aAccess[ g_aNum ] = read_flags( szAccess )
if (!(g_aAccess[g_aNum] & ADMIN_USER) && !(g_aAccess[g_aNum] & ADMIN_ADMIN))
g_aAccess[g_aNum] |= ADMIN_ADMIN
g_aFlags[ g_aNum ] = read_flags( szFlags ) g_aFlags[ g_aNum ] = read_flags( szFlags )
++g_aNum ++g_aNum