diff options
| author | 2019-06-12 21:46:07 +0100 | |
|---|---|---|
| committer | 2019-06-12 21:52:58 +0100 | |
| commit | 9433e34b2133d8f1e77fea15447ba4d0259a5fb0 (patch) | |
| tree | 8e6bb357472f2e39c31c82053a1d02d4b1f7460d /src/modules/m_exemptchanops.cpp | |
| parent | chanhistory: recreate the mode parameter instead of saving it. (diff) | |
Show the mode syntax in ERR_INVALIDMODEPARAM.
Diffstat (limited to 'src/modules/m_exemptchanops.cpp')
| -rw-r--r-- | src/modules/m_exemptchanops.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/modules/m_exemptchanops.cpp b/src/modules/m_exemptchanops.cpp index b10a44859..794b06f6a 100644 --- a/src/modules/m_exemptchanops.cpp +++ b/src/modules/m_exemptchanops.cpp @@ -29,6 +29,7 @@ class ExemptChanOps : public ListModeBase ExemptChanOps(Module* Creator) : ListModeBase(Creator, "exemptchanops", 'X', "End of channel exemptchanops list", 954, 953, false) { + syntax = "<restriction>:<prefix>"; } static PrefixMode* FindMode(const std::string& mode) @@ -77,7 +78,7 @@ class ExemptChanOps : public ListModeBase std::string prefix; if (!ParseEntry(word, restriction, prefix)) { - user->WriteNumeric(Numerics::InvalidModeParameter(chan, this, word, "Invalid exemptchanops entry, format is <restriction>:<prefix>")); + user->WriteNumeric(Numerics::InvalidModeParameter(chan, this, word)); return false; } @@ -89,13 +90,13 @@ class ExemptChanOps : public ListModeBase if (!ServerInstance->Modes->FindMode(restriction, MODETYPE_CHANNEL)) { - user->WriteNumeric(Numerics::InvalidModeParameter(chan, this, word, "Unknown restriction")); + user->WriteNumeric(Numerics::InvalidModeParameter(chan, this, word, "Unknown restriction.")); return false; } if (prefix != "*" && !FindMode(prefix)) { - user->WriteNumeric(Numerics::InvalidModeParameter(chan, this, word, "Unknown prefix mode")); + user->WriteNumeric(Numerics::InvalidModeParameter(chan, this, word, "Unknown prefix mode.")); return false; } |
