Fix for amb118: amx_help would not output ADMIN_ADMIN commands
This commit is contained in:
parent
ae46e3f6ab
commit
b9a0ffacc4
|
@ -65,6 +65,12 @@ public cmdHelp(id, level, cid)
|
||||||
new start = read_argv(1, arg1, 7) ? str_to_num(arg1) : 1
|
new start = read_argv(1, arg1, 7) ? str_to_num(arg1) : 1
|
||||||
new lHelpAmount = HELPAMOUNT
|
new lHelpAmount = HELPAMOUNT
|
||||||
|
|
||||||
|
// HACK: ADMIN_ADMIN is never set as a user's actual flags, so those types of commands never show
|
||||||
|
if (flags > 0 && !(flags & ADMIN_USER))
|
||||||
|
{
|
||||||
|
flags |= ADMIN_ADMIN;
|
||||||
|
}
|
||||||
|
|
||||||
if (id == 0 && read_argc() == 3)
|
if (id == 0 && read_argc() == 3)
|
||||||
lHelpAmount = read_argv(2, arg1, 7) ? str_to_num(arg1) : HELPAMOUNT
|
lHelpAmount = read_argv(2, arg1, 7) ? str_to_num(arg1) : HELPAMOUNT
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user