From 6597fe5d4fd2c1cc474fa35a0db21fec480ff47f Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 29 Jan 2020 11:44:50 +0000 Subject: Add Channel::WriteRemoteNotice and revert WriteNotice changes. This is a partial reversion of 687778b72e. See also: #1749. --- src/channels.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/channels.cpp') diff --git a/src/channels.cpp b/src/channels.cpp index 320fcab78..75c6ab1e6 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -479,6 +479,11 @@ 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); +} + +void Channel::WriteRemoteNotice(const std::string& text, char status) +{ + WriteNotice(text, status); ServerInstance->PI->SendMessage(this, status, text, MSG_NOTICE); } -- cgit v1.3.1-10-gc9f91