+
+ }
+
+ virtual int OnSendSnotice(char &sno, std::string &desc, const std::string &msg)
+ {
+ std::multimap<char, std::string>::const_iterator it = logstreams.find(sno);
+ char buf[MAXBUF];
+
+ if (it == logstreams.end())
+ return 0;
+
+ snprintf(buf, MAXBUF, "\2%s\2: %s", desc.c_str(), msg.c_str());
+
+ while (it != logstreams.end())
+ {
+ if (it->first != sno)
+ {
+ it++;
+ continue;
+ }
+
+ Channel *c = ServerInstance->FindChan(it->second);
+ if (c)
+ {
+ c->WriteChannelWithServ(ServerInstance->Config->ServerName, "PRIVMSG %s :%s", c->name.c_str(), buf);
+ ServerInstance->PI->SendChannelPrivmsg(c, 0, buf);
+ }
+
+ it++;
+ }
+
+ return 0;
+ }
+
+ virtual Version GetVersion()
+ {
+ return Version("$Id$", VF_VENDOR,API_VERSION);