From 0cf1eb4b046ca0224ec1e0dce9831b0557aff651 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 16 Apr 2022 09:17:27 +0100 Subject: Make the parameter field of ValidateParam const. --- src/modules/m_exemptchanops.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/modules/m_exemptchanops.cpp') diff --git a/src/modules/m_exemptchanops.cpp b/src/modules/m_exemptchanops.cpp index 7a6222b12..9fa9fa92f 100644 --- a/src/modules/m_exemptchanops.cpp +++ b/src/modules/m_exemptchanops.cpp @@ -81,13 +81,13 @@ public: return MOD_RES_DENY; } - bool ValidateParam(User* user, Channel* chan, std::string& word) override + bool ValidateParam(User* user, Channel* chan, const std::string& parameter) override { std::string restriction; std::string prefix; - if (!ParseEntry(word, restriction, prefix)) + if (!ParseEntry(parameter, restriction, prefix)) { - user->WriteNumeric(Numerics::InvalidModeParameter(chan, this, word)); + user->WriteNumeric(Numerics::InvalidModeParameter(chan, this, parameter)); return false; } @@ -99,13 +99,13 @@ public: if (!ServerInstance->Modes.FindMode(restriction, MODETYPE_CHANNEL)) { - user->WriteNumeric(Numerics::InvalidModeParameter(chan, this, word, "Unknown restriction.")); + user->WriteNumeric(Numerics::InvalidModeParameter(chan, this, parameter, "Unknown restriction.")); return false; } if (prefix != "*" && !FindMode(prefix)) { - user->WriteNumeric(Numerics::InvalidModeParameter(chan, this, word, "Unknown prefix mode.")); + user->WriteNumeric(Numerics::InvalidModeParameter(chan, this, parameter, "Unknown prefix mode.")); return false; } -- cgit v1.3.1-10-gc9f91