X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_anticaps.cpp;h=8f020ed03d1410d9319025bff2c084b5d9fbee45;hb=5a2af6ded883d71c6c4c9f1497cca1721f8b0742;hp=e916edd53ee12069af7d2badd708961b95ff1521;hpb=5ed970ca7d4e079ca9ff577974572a577c65e823;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_anticaps.cpp b/src/modules/m_anticaps.cpp index e916edd53..8f020ed03 100644 --- a/src/modules/m_anticaps.cpp +++ b/src/modules/m_anticaps.cpp @@ -101,6 +101,7 @@ class AntiCapsMode : public ParamMode >(Creator, "anticaps", 'B') { + syntax = "{ban|block|mute|kick|kickban}::"; } ModeAction OnSet(User* source, Channel* channel, std::string& parameter) CXX11_OVERRIDE @@ -113,7 +114,7 @@ class AntiCapsMode : public ParamModeWriteNumeric(Numerics::InvalidModeParameter(channel, this, parameter, "Invalid anticaps mode parameter. Syntax: :{minlen}:{percent}.")); + source->WriteNumeric(Numerics::InvalidModeParameter(channel, this, parameter)); return MODEACTION_DENY; } @@ -173,7 +174,7 @@ class ModuleAntiCaps : public Module void InformUser(Channel* channel, User* user, const std::string& message) { - user->WriteNumeric(ERR_CANNOTSENDTOCHAN, channel, message + " and was blocked."); + user->WriteNumeric(ERR_CANNOTSENDTOCHAN, channel->name, message + " and was blocked."); } public: @@ -297,7 +298,7 @@ class ModuleAntiCaps : public Module Version GetVersion() CXX11_OVERRIDE { - return Version("Provides support for punishing users that send capitalised messages.", VF_COMMON|VF_VENDOR); + return Version("Provides support for punishing users that send capitalised messages", VF_COMMON|VF_VENDOR); } };