From 710689b2c4f6f0bdeb349e101941943af8fcd07b Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 21 Oct 2007 14:51:10 +0000 Subject: Add penalty to /commands as extra parameter git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8256 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_commands.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/cmd_commands.cpp') diff --git a/src/cmd_commands.cpp b/src/cmd_commands.cpp index bfdafb6ad..f9327d372 100644 --- a/src/cmd_commands.cpp +++ b/src/cmd_commands.cpp @@ -25,7 +25,12 @@ CmdResult cmd_commands::Handle (const char** parameters, int pcnt, User *user) { for (Commandable::iterator i = ServerInstance->Parser->cmdlist.begin(); i != ServerInstance->Parser->cmdlist.end(); i++) { - user->WriteServ("902 %s :%s %s %d",user->nick,i->second->command.c_str(),i->second->source.c_str(),i->second->min_params); + user->WriteServ("902 %s :%s %s %d %d", + user->nick, + i->second->command.c_str(), + i->second->source.c_str(), + i->second->min_params, + i->second->Penalty); } user->WriteServ("903 %s :End of COMMANDS list",user->nick); return CMD_SUCCESS; -- cgit v1.2.3