From 1213af7acd5553ebc75c8de4a6ea5ed31949dd98 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Sat, 7 Feb 2004 10:15:51 +0000 Subject: [PATCH] if default access is empty flag "z" is set --- plugins/admin.sma | 4 ++-- plugins/admin_mysql.sma | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/admin.sma b/plugins/admin.sma index d5159cad..3aa0ce21 100755 --- a/plugins/admin.sma +++ b/plugins/admin.sma @@ -137,8 +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) + if (!defaccess[0]) + defaccess[0] = 'z' new idefaccess = read_flags(defaccess) if (idefaccess){ result |= 8 diff --git a/plugins/admin_mysql.sma b/plugins/admin_mysql.sma index 027ccd73..a211ec07 100755 --- a/plugins/admin_mysql.sma +++ b/plugins/admin_mysql.sma @@ -166,8 +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) + if (!defaccess[0]) + defaccess[0] = 'z' new idefaccess = read_flags(defaccess) if (idefaccess){ result |= 8