diff options
| author | 2022-12-08 10:19:47 +0000 | |
|---|---|---|
| committer | 2022-12-08 10:19:47 +0000 | |
| commit | 5e44188857ba733f72f3728f557f7f9bfe251602 (patch) | |
| tree | bbe537fa35ead05c2de65f3ea1165557bf2ece01 /src/modules/m_spanningtree/protocolinterface.cpp | |
| parent | Const correct the IRCv3 standard replies API. (diff) | |
More const correctness work.
Diffstat (limited to 'src/modules/m_spanningtree/protocolinterface.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/protocolinterface.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_spanningtree/protocolinterface.cpp b/src/modules/m_spanningtree/protocolinterface.cpp index 8f65bf4d7..77e92f32e 100644 --- a/src/modules/m_spanningtree/protocolinterface.cpp +++ b/src/modules/m_spanningtree/protocolinterface.cpp @@ -49,7 +49,7 @@ void SpanningTreeProtocolInterface::GetServerList(ServerList& sl) } } -bool SpanningTreeProtocolInterface::SendEncapsulatedData(const std::string& targetmask, const std::string& cmd, const CommandBase::Params& params, User* source) +bool SpanningTreeProtocolInterface::SendEncapsulatedData(const std::string& targetmask, const std::string& cmd, const CommandBase::Params& params, const User* source) { if (!source) source = ServerInstance->FakeClient; @@ -76,7 +76,7 @@ bool SpanningTreeProtocolInterface::SendEncapsulatedData(const std::string& targ return true; } -void SpanningTreeProtocolInterface::BroadcastEncap(const std::string& cmd, const CommandBase::Params& params, User* source, User* omit) +void SpanningTreeProtocolInterface::BroadcastEncap(const std::string& cmd, const CommandBase::Params& params, const User* source, const User* omit) { if (!source) source = ServerInstance->FakeClient; @@ -107,7 +107,7 @@ void SpanningTreeProtocolInterface::SendSNONotice(char snomask, const std::strin CmdBuilder("SNONOTICE").push(snomask).push_last(text).Broadcast(); } -void SpanningTreeProtocolInterface::SendMessage(Channel* target, char status, const std::string& text, MessageType msgtype) +void SpanningTreeProtocolInterface::SendMessage(const Channel* target, char status, const std::string& text, MessageType msgtype) { const char* cmd = (msgtype == MSG_PRIVMSG ? "PRIVMSG" : "NOTICE"); CUList exempt_list; @@ -115,7 +115,7 @@ void SpanningTreeProtocolInterface::SendMessage(Channel* target, char status, co Utils->SendChannelMessage(ServerInstance->FakeClient, target, text, status, tags, exempt_list, cmd); } -void SpanningTreeProtocolInterface::SendMessage(User* target, const std::string& text, MessageType msgtype) +void SpanningTreeProtocolInterface::SendMessage(const User* target, const std::string& text, MessageType msgtype) { CmdBuilder p(msgtype == MSG_PRIVMSG ? "PRIVMSG" : "NOTICE"); p.push(target->uuid); |
