X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fchannels.cpp;h=972efa92773865592db8b4c8703bb1ad09ee9c60;hb=f6b861f12d070ba931d829505bfd3229653f5df2;hp=320fcab784e081bf4e9aeb773514feb20a4528c5;hpb=aa692dc1039b63deef7886e914ec499abe7facaf;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/channels.cpp b/src/channels.cpp index 320fcab78..972efa927 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -2,7 +2,7 @@ * InspIRCd -- Internet Relay Chat Daemon * * Copyright (C) 2017 B00mX0r - * Copyright (C) 2013-2014, 2016-2019 Sadie Powell + * Copyright (C) 2013-2014, 2016-2020 Sadie Powell * Copyright (C) 2013 Adam * Copyright (C) 2012-2016, 2018 Attila Molnar * Copyright (C) 2012, 2019 Robby @@ -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); }