Remove support for %name% replacement in plmenu (bug 6578).
This commit is contained in:
@ -820,16 +820,14 @@ public actionClcmdMenu(id, key)
|
||||
|
||||
if (is_user_connected(player))
|
||||
{
|
||||
new command[64], authid[32], name[MAX_NAME_LENGTH], userid[32]
|
||||
new command[64], authid[32], userid[32]
|
||||
|
||||
copy(command, charsmax(command), g_clcmdCmd[g_menuSelect[id][g_menuOption[id]]])
|
||||
get_user_authid(player, authid, charsmax(authid))
|
||||
get_user_name(player, name, charsmax(name))
|
||||
num_to_str(get_user_userid(player), userid, charsmax(userid))
|
||||
|
||||
replace(command, charsmax(command), "%userid%", userid)
|
||||
replace(command, charsmax(command), "%authid%", authid)
|
||||
replace(command, charsmax(command), "%name%", name)
|
||||
|
||||
if (flags & 1)
|
||||
{
|
||||
|
Reference in New Issue
Block a user