diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-17 14:01:53 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-17 14:01:53 +0000 |
commit | 3a7dd5b129450b94e0a87b8ad5009da70905b8e5 (patch) | |
tree | ba05bf4834f03c4c1450ec83bd5b238d055b3d5f /src/cmd_kill.cpp | |
parent | e166642755b17a56053d57dbd597e2fa38bb96c6 (diff) |
Add const std::string &original_command to OnPreCommand and OnPostCommand, which gives the entire untouched command string and params in all its colon-ny glory
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5265 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_kill.cpp')
-rw-r--r-- | src/cmd_kill.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd_kill.cpp b/src/cmd_kill.cpp index 4d1a6d4ff..6f42c1b38 100644 --- a/src/cmd_kill.cpp +++ b/src/cmd_kill.cpp @@ -68,7 +68,8 @@ CmdResult cmd_kill::Handle (const char** parameters, int pcnt, userrec *user) if (u == user) { - FOREACH_MOD(I_OnPostCommand,OnPostCommand("KILL", parameters, pcnt, user, CMD_SUCCESS)); + std::string original_command = std::string("KILL ") + u->nick + " :"+parameters[1]; + FOREACH_MOD(I_OnPostCommand,OnPostCommand("KILL", parameters, pcnt, user, CMD_SUCCESS,original_command)); return CMD_USER_DELETED; } DELETE(u); |