diff options
| author | 2006-02-04 13:09:18 +0000 | |
|---|---|---|
| committer | 2006-02-04 13:09:18 +0000 | |
| commit | 235a0a2035bda6dd214719107083266207f39883 (patch) | |
| tree | ffb6b257f722b9b1e3532d3edaf933e0fdf8f372 /src/cmd_privmsg.cpp | |
| parent | Stop trying to set an empty swhois if the <type> doesn't specify one (diff) | |
Added "char status" parameter to OnUserPreNotice and OnUserPreMessage for NOTICE @#chan etc.
Tidied up craq++ in modules (copy and pasting OnUserPreNotice into OnUserPreMessage?! why not just call one from the other!)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3072 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_privmsg.cpp')
| -rw-r--r-- | src/cmd_privmsg.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd_privmsg.cpp b/src/cmd_privmsg.cpp index 2d14ddf89..883a75d47 100644 --- a/src/cmd_privmsg.cpp +++ b/src/cmd_privmsg.cpp @@ -109,7 +109,7 @@ void cmd_privmsg::Handle (char **parameters, int pcnt, userrec *user) int MOD_RESULT = 0; std::string temp = parameters[1]; - FOREACH_RESULT(I_OnUserPreMessage,OnUserPreMessage(user,chan,TYPE_CHANNEL,temp)); + FOREACH_RESULT(I_OnUserPreMessage,OnUserPreMessage(user,chan,TYPE_CHANNEL,temp,status)); if (MOD_RESULT) { return; } @@ -144,7 +144,7 @@ void cmd_privmsg::Handle (char **parameters, int pcnt, userrec *user) int MOD_RESULT = 0; std::string temp = parameters[1]; - FOREACH_RESULT(I_OnUserPreMessage,OnUserPreMessage(user,dest,TYPE_USER,temp)); + FOREACH_RESULT(I_OnUserPreMessage,OnUserPreMessage(user,dest,TYPE_USER,temp,0)); if (MOD_RESULT) { return; } |
