From e0af113cacfe20c48ef955d7f30d2630fc029536 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 17 Sep 2004 00:51:20 +0000 Subject: [PATCH] Fixed bug reported by kexz --- plugins/admincmd.sma | 39 +-------------------------------------- plugins/compile.sh | 4 ++-- 2 files changed, 3 insertions(+), 40 deletions(-) diff --git a/plugins/admincmd.sma b/plugins/admincmd.sma index d75c9eac..b019f3f0 100755 --- a/plugins/admincmd.sma +++ b/plugins/admincmd.sma @@ -400,26 +400,6 @@ public cmdPlugins(id,level,cid) { format(lFile,31,"%L",id,"FILE") format(lStatus,31,"%L",id,"STATUS") -/* - new motd_body[MOTD_LEN],state[4] - new num = get_pluginsnum() - new running = 0 - new pos = copy(motd_body,MOTD_LEN,"") - - for (new i=0;i",state,name,version,author,filename,status) - if (equal(status,"running")) - running++ - } - format(motd_body[pos],MOTD_LEN-pos,"
NameVersionAuthorFilenamestatus
%s%s%s%s%s
%d plugins, %d running",num,running) - show_motd(id,motd_body,"Currently loaded plugins:") -*/ new num = get_pluginsnum() new running = 0 console_print(id,"%L:",id,"LOADED_PLUGINS") @@ -447,23 +427,6 @@ public cmdModules(id,level,cid) { format(lVersion,31,"%L",id,"VERSION") format(lAuthor,31,"%L",id,"AUTHOR") -/* - new motd_body[MOTD_LEN],state[4] - new num = get_modulesnum() - new pos = copy(motd_body,MOTD_LEN,"") - - for (new i=0;i",state,name,version,author) - } - format(motd_body[pos],MOTD_LEN-pos,"
NameVersionAuthor
%s%s%s
%d modules",num) - show_motd(id,motd_body,"Currently loaded modules:") -*/ new num = get_modulesnum() console_print(id,"%L:",id,"LOADED_MODULES") console_print(id,"%-23.22s %-8.7s %-20.19s",lName,lVersion,lAuthor) @@ -686,4 +649,4 @@ public cmdNick(id,level,cid) { console_print(id,"[AMXX] %L",id,"CHANGED_NICK",name2,arg2) return PLUGIN_HANDLED -} \ No newline at end of file +} diff --git a/plugins/compile.sh b/plugins/compile.sh index cdea40da..ab1136c3 100755 --- a/plugins/compile.sh +++ b/plugins/compile.sh @@ -9,6 +9,6 @@ test -e compiled || mkdir compiled ls *.sma | xargs -i ./amxxsc \{\} -ocompiled/\{\} > temp.txt -ls compiled/*.sma | xargs -i basename \{\} .sma | xargs -i mv compiled/\{\}.sma compiled/\{\}.amxx +ls compiled/*.amx | xargs -i basename \{\} .amx | xargs -i mv compiled/\{\}.amxx compiled/\{\}.amxx more temp.txt -rm temp.txt \ No newline at end of file +rm temp.txt