From f652ccfcab85efd985f8fe8574016eb0dccf0f6e Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 20 May 2005 00:08:31 +0000 Subject: Fixed /COMMANDS git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1458 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/commands.cpp b/src/commands.cpp index 8525b4936..87d6db0f0 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -189,11 +189,11 @@ void handle_part(char **parameters, int pcnt, userrec *user) void handle_commands(char **parameters, int pcnt, userrec *user) { - for (int i = 0; i < command_table.size(); i++) + for (int i = 0; i < cmdlist.size(); i++) { - WriteServ(user->fd,"902 %s :%s %s %d",user->nick,command_table[i].command,command_table[i].source,command_table[i].min_params); + WriteServ(user->fd,"902 %s :%s %s %d",user->nick,cmdlist[i].command,cmdlist[i].source,cmdlist[i].min_params); } - WriteServ(user->fd,"903 %s :End of COMMANDS list"); + WriteServ(user->fd,"903 %s :End of COMMANDS list",user->nick); } void handle_kick(char **parameters, int pcnt, userrec *user) -- cgit v1.2.3