From 95972cb250acce695527b37df41c40d3e8d02e27 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Mon, 2 Feb 2004 20:52:24 +0000 Subject: [PATCH] added flag z to default access --- plugins/admin.sma | 7 ++++--- plugins/admin_mysql.sma | 2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/plugins/admin.sma b/plugins/admin.sma index c0da090a..d5159cad 100755 --- a/plugins/admin.sma +++ b/plugins/admin.sma @@ -43,8 +43,7 @@ public plugin_init() get_basedir( filename , 31 ) server_cmd("exec %s/amx.cfg" , filename ) // Execute main configuration file format( filename, 63 , "%s/users.ini" , filename ) - loadSettings( filename ) // Load admins accounts - + loadSettings( filename ) // Load admins accounts } loadSettings(szFilename[]) @@ -138,6 +137,8 @@ getAccess(id,name[],authid[],ip[], password[]) else { new defaccess[32] get_cvar_string("amx_default_access",defaccess,31) + if (containi(defaccess,"z")==-1) + format(defaccess,31,"%sz",defaccess) new idefaccess = read_flags(defaccess) if (idefaccess){ result |= 8 @@ -201,4 +202,4 @@ public client_authorized(id) public client_connect(id) #endif - return get_cvar_num( "amx_mode" ) ? accessUser( id ) : PLUGIN_CONTINUE + return get_cvar_num( "amx_mode" ) ? accessUser( id ) : PLUGIN_CONTINUE \ No newline at end of file diff --git a/plugins/admin_mysql.sma b/plugins/admin_mysql.sma index 9d02a088..027ccd73 100755 --- a/plugins/admin_mysql.sma +++ b/plugins/admin_mysql.sma @@ -166,6 +166,8 @@ getAccess(id,name[],authid[],ip[], password[]){ else { new defaccess[32] get_cvar_string("amx_default_access",defaccess,31) + if (containi(defaccess,"z")==-1) + format(defaccess,31,"%sz",defaccess) new idefaccess = read_flags(defaccess) if (idefaccess){ result |= 8