]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/channels.cpp
m_showfile Replace User::SendText() call with WriteCommand()
[user/henk/code/inspircd.git] / src / channels.cpp
index a2d5c4a30f1831c8a72fcc63ff83c51c78ce330e..14b1ea54534b3559750e1e2594db4858ff338575 100644 (file)
@@ -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.