Replace get_server_flag() with get_server_umode()
This function gets the status of a single umode flag identified by umode char rather than internal server flag number. This also lets us remove all the USER_MODE* constants because they're no longer required. Invert the sense of the +w check in e_wall() - we only echo our OPERWALL if we're *not* +w, because if we are +w then the server will echo it back to us anyway.
This commit is contained in:
@@ -281,7 +281,7 @@ static int already_done = 0;
|
||||
global_table[GET_SERVER_MOTD] = (Function_ptr) BX_get_server_motd;
|
||||
global_table[GET_SERVER_OPERATOR] = (Function_ptr) BX_get_server_operator;
|
||||
global_table[GET_SERVER_VERSION] = (Function_ptr) BX_get_server_version;
|
||||
global_table[GET_SERVER_FLAG] = (Function_ptr) BX_get_server_flag;
|
||||
global_table[GET_SERVER_UMODE] = (Function_ptr) BX_get_server_umode;
|
||||
global_table[GET_SERVER_PORT] = (Function_ptr) BX_get_server_port;
|
||||
global_table[GET_SERVER_LAG] = (Function_ptr) BX_get_server_lag;
|
||||
global_table[GET_SERVER2_8] = (Function_ptr) BX_get_server2_8;
|
||||
|
||||
Reference in New Issue
Block a user