* @param snomask The snomask required for the message to be sent.
* @param text The message to send.
*/
- virtual void SendSNONotice(const std::string &snomask, const std::string &text) { }
+ virtual void SendSNONotice(char snomask, const std::string& text) { }
/** Send raw data to a remote client.
* @param target The user to push data to.
msg.append(e.GetReason());
ServerInstance->SNO->WriteToSnoMask('l', msg);
if (status.srcuser && !IS_LOCAL(status.srcuser))
- ServerInstance->PI->SendSNONotice("L", msg);
+ ServerInstance->PI->SendSNONotice('L', msg);
}
}
}
}
-void SpanningTreeProtocolInterface::SendSNONotice(const std::string &snomask, const std::string &text)
+void SpanningTreeProtocolInterface::SendSNONotice(char snomask, const std::string &text)
{
CmdBuilder("SNONOTICE").push(snomask).push_last(text).Broadcast();
}
void SendMetaData(const std::string& key, const std::string& data) CXX11_OVERRIDE;
void SendTopic(Channel* channel, std::string &topic);
void SendMode(User* source, User* usertarget, Channel* chantarget, const parameterlist& modedata, const std::vector<TranslateType>& types);
- void SendSNONotice(const std::string &snomask, const std::string &text);
+ void SendSNONotice(char snomask, const std::string& text) CXX11_OVERRIDE;
void PushToClient(User* target, const std::string &rawline);
void SendMessage(Channel* target, char status, const std::string& text, MessageType msgtype);
void SendMessage(User* target, const std::string& text, MessageType msgtype);
{
WriteToSnoMask(letter, text);
letter = toupper(letter);
- ServerInstance->PI->SendSNONotice(std::string(1, letter), text);
+ ServerInstance->PI->SendSNONotice(letter, text);
}
void SnomaskManager::WriteToSnoMask(char letter, const char* text, ...)