From 1eb6c608836947ce9ccff66fc17063f32cf4503b Mon Sep 17 00:00:00 2001 From: peavey Date: Sun, 10 Dec 2006 01:56:50 +0000 Subject: Fix for bug #178 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5905 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_notice.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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)); } -- cgit v1.2.3