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 {
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

View File

@ -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