X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmodules%2Fm_muteban.cpp;h=13150b0d0fe8936e0d64fc4dfc704b4e07531721;hb=3151d60c1ecc9462e4c335282ee6c31672f45111;hp=acfcb1801260b7a6b145a59393ea2b1524bfcff6;hpb=87b1461e2a4710a38b32186c2582da9fe9bb3804;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_muteban.cpp b/src/modules/m_muteban.cpp index acfcb1801..13150b0d0 100644 --- a/src/modules/m_muteban.cpp +++ b/src/modules/m_muteban.cpp @@ -1,7 +1,11 @@ /* * InspIRCd -- Internet Relay Chat Daemon * + * Copyright (C) 2013, 2017, 2019-2020 Sadie Powell + * Copyright (C) 2012, 2018-2019 Robby + * Copyright (C) 2009 Uli Schlachter * Copyright (C) 2009 Daniel De Graaf + * Copyright (C) 2008, 2010 Craig Edwards * Copyright (C) 2008 Robin Burchell * * This file is part of InspIRCd. InspIRCd is free software: you can @@ -42,7 +46,7 @@ class ModuleQuietBan Version GetVersion() CXX11_OVERRIDE { - return Version("Provides extban 'm', mute bans", VF_OPTCOMMON|VF_VENDOR); + return Version("Adds extended ban m which bans specific masks from speaking in a channel.", VF_OPTCOMMON|VF_VENDOR); } ModResult HandleMessage(User* user, const MessageTarget& target, bool& echo_original) @@ -59,7 +63,7 @@ class ModuleQuietBan return MOD_RES_DENY; } - user->WriteNumeric(ERR_CANNOTSENDTOCHAN, chan->name, "Cannot send to channel (you're muted)"); + user->WriteNumeric(Numerics::CannotSendTo(chan, "messages", 'm', "mute")); return MOD_RES_DENY; }