diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-01-04 19:43:04 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-01-04 19:43:04 +0100 |
commit | a500ec70bb82151c8fcf7443b4645640233952e8 (patch) | |
tree | e3068140d44bed3c8e35a0d24846bc40dcb14330 | |
parent | b5bc73e31026ee2087f0ceb5c7d9f99bf3c288a6 (diff) |
Change type of snomask parameter to char in ProtocolInterface::SendSNONotice()
-rw-r--r-- | include/protocol.h | 2 | ||||
-rw-r--r-- | src/modules/m_spanningtree/main.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_spanningtree/protocolinterface.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_spanningtree/protocolinterface.h | 2 | ||||
-rw-r--r-- | src/snomasks.cpp | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/include/protocol.h b/include/protocol.h index b077a4f47..4afb0bf59 100644 --- a/include/protocol.h +++ b/include/protocol.h @@ -104,7 +104,7 @@ class CoreExport ProtocolInterface * @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. diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index 39ff222c5..8d8a51ede 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -631,7 +631,7 @@ void ModuleSpanningTree::ReadConfig(ConfigStatus& status) 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); } } diff --git a/src/modules/m_spanningtree/protocolinterface.cpp b/src/modules/m_spanningtree/protocolinterface.cpp index a6c826c7b..7a2b033d9 100644 --- a/src/modules/m_spanningtree/protocolinterface.cpp +++ b/src/modules/m_spanningtree/protocolinterface.cpp @@ -103,7 +103,7 @@ void SpanningTreeProtocolInterface::SendMode(User* source, User* u, Channel* c, } } -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(); } diff --git a/src/modules/m_spanningtree/protocolinterface.h b/src/modules/m_spanningtree/protocolinterface.h index 8b9eeb6a8..745a0c3cc 100644 --- a/src/modules/m_spanningtree/protocolinterface.h +++ b/src/modules/m_spanningtree/protocolinterface.h @@ -37,7 +37,7 @@ class SpanningTreeProtocolInterface : public ProtocolInterface 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); diff --git a/src/snomasks.cpp b/src/snomasks.cpp index d7cb64f26..e0305ea06 100644 --- a/src/snomasks.cpp +++ b/src/snomasks.cpp @@ -47,7 +47,7 @@ void SnomaskManager::WriteGlobalSno(char letter, const std::string& text) { 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, ...) |