From af69e24eaf7d608803855c5417b1606eb9bcedf4 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Sat, 31 Jul 2004 01:00:20 +0000 Subject: [PATCH] added register_menu() | fixed a compiler warning in access() --- plugins/include/amxmisc.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/include/amxmisc.inc b/plugins/include/amxmisc.inc index c80ac11e..b84ac0b5 100755 --- a/plugins/include/amxmisc.inc +++ b/plugins/include/amxmisc.inc @@ -40,8 +40,8 @@ stock cmd_access(id,level,cid,num) { stock access(id,level) { if ( level==ADMIN_ADMIN ) return is_user_admin(id) - else - return (get_user_flags(id) & level) + + return (get_user_flags(id) & level) } stock is_user_admin(id) { @@ -135,6 +135,9 @@ stock get_configsdir(name[],len) stock get_datadir(name[],len) return get_localinfo("amxx_datadir",name,len) +stock register_menu(title[],keys,function[],outside=0) + register_menucmd(register_menuid(title,outside),keys,function) + /* Backwards Compatibility * don't use it! */ stock get_customdir(name[],len)