diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-21 14:51:10 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-21 14:51:10 +0000 |
commit | 710689b2c4f6f0bdeb349e101941943af8fcd07b (patch) | |
tree | 00e2e3fa3a82166a621ede1e8fe4914b537b6383 /src | |
parent | ed2ca79021610d1042787c40fc8cb926d7b4090d (diff) |
Add penalty to /commands as extra parameter
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8256 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd_commands.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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; |