if default access is empty flag "z" is set

This commit is contained in:
Felix Geyer 2004-02-07 10:15:51 +00:00
parent 7e74c81e23
commit 1213af7acd
2 changed files with 4 additions and 4 deletions

View File

@ -137,8 +137,8 @@ getAccess(id,name[],authid[],ip[], password[])
else { else {
new defaccess[32] new defaccess[32]
get_cvar_string("amx_default_access",defaccess,31) get_cvar_string("amx_default_access",defaccess,31)
if (containi(defaccess,"z")==-1) if (!defaccess[0])
format(defaccess,31,"%sz",defaccess) defaccess[0] = 'z'
new idefaccess = read_flags(defaccess) new idefaccess = read_flags(defaccess)
if (idefaccess){ if (idefaccess){
result |= 8 result |= 8

View File

@ -166,8 +166,8 @@ getAccess(id,name[],authid[],ip[], password[]){
else { else {
new defaccess[32] new defaccess[32]
get_cvar_string("amx_default_access",defaccess,31) get_cvar_string("amx_default_access",defaccess,31)
if (containi(defaccess,"z")==-1) if (!defaccess[0])
format(defaccess,31,"%sz",defaccess) defaccess[0] = 'z'
new idefaccess = read_flags(defaccess) new idefaccess = read_flags(defaccess)
if (idefaccess){ if (idefaccess){
result |= 8 result |= 8