From 731fbab1a6fd4847297d391210d3f9809692448b Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 2 Apr 2022 03:13:28 +0100 Subject: Fix server status messages unintentionally being sent to all users. This fixes normal users seeing timedbans notices. Thanks to @AndrioCelos for pointing this out. --- src/channels.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/channels.cpp') diff --git a/src/channels.cpp b/src/channels.cpp index 9eceadf64..4373a1b63 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -478,7 +478,7 @@ const char* Channel::ChanModes(bool showsecret) void Channel::WriteNotice(const std::string& text, char status) { ClientProtocol::Messages::Privmsg privmsg(ClientProtocol::Messages::Privmsg::nocopy, ServerInstance->FakeClient, this, text, MSG_NOTICE, status); - Write(ServerInstance->GetRFCEvents().privmsg, privmsg); + Write(ServerInstance->GetRFCEvents().privmsg, privmsg, status); } void Channel::WriteRemoteNotice(const std::string& text, char status) -- cgit v1.3.1-10-gc9f91