From 0586ec9baa7961240e0eab5b27d7823a9d465704 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sat, 5 Mar 2016 16:41:24 +0100 Subject: Add Channel::WriteNotice() --- src/channels.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/channels.cpp') diff --git a/src/channels.cpp b/src/channels.cpp index a2d5c4a30..14b1ea545 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -562,6 +562,13 @@ const char* Channel::ChanModes(bool showkey) return scratch.c_str(); } +void Channel::WriteNotice(const std::string& text) +{ + std::string rawmsg = "NOTICE "; + rawmsg.append(this->name).append(" :").append(text); + WriteChannelWithServ(ServerInstance->Config->ServerName, rawmsg); +} + /* returns the status character for a given user on a channel, e.g. @ for op, * % for halfop etc. If the user has several modes set, the highest mode * the user has must be returned. -- cgit v1.2.3