X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_exemptchanops.cpp;h=794b06f6abc77e4d91502ee53729b22f99f98901;hb=c7dc34b6e08e41136594a86e172423f11ba5bfac;hp=b10a44859dcc3d51468b6a515615b7dd1164caf7;hpb=34d385ea3253442c2ede2df1f0b50b2eb042c615;p=user%2Fhenk%2Fcode%2Finspircd.git 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 = ":"; } 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 :")); + 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; }