diff options
| author | 2022-12-06 13:02:52 +0000 | |
|---|---|---|
| committer | 2022-12-06 13:02:52 +0000 | |
| commit | ce57199237ccdeb4124fc4db72b26e3575639bf4 (patch) | |
| tree | 787a27acdd5a6bce5cbc07c493c31bf835ee47ab /include/modules | |
| parent | If an oper is away then show it in `/STATS P`. (diff) | |
Const correct the IRCv3 standard replies API.
Diffstat (limited to 'include/modules')
| -rw-r--r-- | include/modules/ircv3_replies.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/modules/ircv3_replies.h b/include/modules/ircv3_replies.h index 715c52121..39c28ca2a 100644 --- a/include/modules/ircv3_replies.h +++ b/include/modules/ircv3_replies.h @@ -64,7 +64,7 @@ private: user->Send(ev); } - void SendNoticeInternal(LocalUser* user, Command* command, const std::string& description) + void SendNoticeInternal(LocalUser* user, const Command* command, const std::string& description) { if (command) user->WriteNotice(InspIRCd::Format("*** %s: %s", command->name.c_str(), description.c_str())); @@ -92,7 +92,7 @@ public: * @param args A variable number of context parameters and a human readable description of this reply. */ template<typename... Args> - void Send(LocalUser* user, Command* command, const std::string& code, Args&&... args) + void Send(LocalUser* user, const Command* command, const std::string& code, Args&&... args) { static_assert(sizeof...(Args) >= 1); @@ -116,7 +116,7 @@ public: * @param args A variable number of context parameters and a human readable description of this reply. */ template<typename... Args> - void SendIfCap(LocalUser* user, Cap::Capability* cap, Command* command, const std::string& code, + void SendIfCap(LocalUser* user, const Cap::Capability* cap, const Command* command, const std::string& code, Args&&... args) { static_assert(sizeof...(Args) >= 1); |
