diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-10 02:13:59 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-10 02:13:59 +0000 |
commit | 3bf260cb99dd91a92f2363716440e1196d7f5cf1 (patch) | |
tree | b29c271cd420149ac8b1c696d6b0800bff0ae4cd /src/cmd_privmsg.cpp | |
parent | 1eb6c608836947ce9ccff66fc17063f32cf4503b (diff) |
Add prefix to /PRIVMSG, similar to bug #178 for /NOTICE
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5906 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_privmsg.cpp')
-rw-r--r-- | src/cmd_privmsg.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/cmd_privmsg.cpp b/src/cmd_privmsg.cpp index 896aa4c3e..a1839ca41 100644 --- a/src/cmd_privmsg.cpp +++ b/src/cmd_privmsg.cpp @@ -99,7 +99,15 @@ CmdResult cmd_privmsg::Handle (const char** parameters, int pcnt, userrec *user) return CMD_FAILURE; } - chan->WriteAllExcept(user, false, status, except_list, "PRIVMSG %s :%s", chan->name, parameters[1]); + if (status) + { + chan->WriteAllExcept(user, false, status, except_list, "PRIVMSG %c%s :%c %s", status, chan->name, status, parameters[1]); + } + else + { + chan->WriteAllExcept(user, false, status, except_list, "PRIVMSG %s :%s", chan->name, parameters[1]); + } + FOREACH_MOD(I_OnUserMessage,OnUserMessage(user,chan,TYPE_CHANNEL,parameters[1],status,except_list)); } else |