diff options
| author | 2022-04-16 09:17:27 +0100 | |
|---|---|---|
| committer | 2022-04-16 09:17:27 +0100 | |
| commit | 0cf1eb4b046ca0224ec1e0dce9831b0557aff651 (patch) | |
| tree | 7361ebce450278cb2f77910f24ff309eab2e032e /src/modules/m_exemptchanops.cpp | |
| parent | Remove FPART, force REMOVE to always use the new syntax. (diff) | |
Make the parameter field of ValidateParam const.
Diffstat (limited to 'src/modules/m_exemptchanops.cpp')
| -rw-r--r-- | src/modules/m_exemptchanops.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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; } |
