From ce57199237ccdeb4124fc4db72b26e3575639bf4 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 6 Dec 2022 13:02:52 +0000 Subject: Const correct the IRCv3 standard replies API. --- include/modules/ircv3_replies.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/modules') 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 - 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 - 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); -- cgit v1.3.1-10-gc9f91