From 0412378109ae9f618e47b2bb60729c0d8f29fe8d Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sat, 5 Mar 2016 16:46:03 +0100 Subject: Send NOTICEs to local channel members with Channel::WriteNotice() --- src/modules/m_remove.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_remove.cpp') diff --git a/src/modules/m_remove.cpp b/src/modules/m_remove.cpp index 5b0efe2a2..d643bc0cd 100644 --- a/src/modules/m_remove.cpp +++ b/src/modules/m_remove.cpp @@ -130,7 +130,7 @@ class RemoveBase : public Command /* Build up the part reason string. */ reason = "Removed by " + user->nick + ": " + reasonparam; - channel->WriteChannelWithServ(ServerInstance->Config->ServerName, "NOTICE %s :%s removed %s from the channel", channel->name.c_str(), user->nick.c_str(), target->nick.c_str()); + channel->WriteNotice(InspIRCd::Format("%s removed %s from the channel", user->nick.c_str(), target->nick.c_str())); target->WriteNotice("*** " + user->nick + " removed you from " + channel->name + " with the message: " + reasonparam); channel->PartUser(target, reason); -- cgit v1.3.1-10-gc9f91