diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-10 01:56:50 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-10 01:56:50 +0000 |
commit | 1eb6c608836947ce9ccff66fc17063f32cf4503b (patch) | |
tree | 5fd4f80225a9e60bc747d6196388583f2e693e0f /src/cmd_notice.cpp | |
parent | 0c676f5f33eda2cac961b2fe4bb12a4a6637c584 (diff) |
Fix for bug #178
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5905 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_notice.cpp')
-rw-r--r-- | src/cmd_notice.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/cmd_notice.cpp b/src/cmd_notice.cpp index 385219c1e..8161d0cf8 100644 --- a/src/cmd_notice.cpp +++ b/src/cmd_notice.cpp @@ -98,7 +98,14 @@ CmdResult cmd_notice::Handle (const char** parameters, int pcnt, userrec *user) return CMD_FAILURE; } - chan->WriteAllExcept(user, false, status, exempt_list, "NOTICE %s :%s", chan->name, parameters[1]); + if (status) + { + chan->WriteAllExcept(user, false, status, exempt_list, "NOTICE %c%s :%c %s", status, chan->name, status, parameters[1]); + } + else + { + chan->WriteAllExcept(user, false, status, exempt_list, "NOTICE %s :%s", chan->name, parameters[1]); + } FOREACH_MOD(I_OnUserNotice,OnUserNotice(user,chan,TYPE_CHANNEL,parameters[1],status,exempt_list)); } |