X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=inline;f=src%2Fmodules%2Fm_muteban.cpp;h=13150b0d0fe8936e0d64fc4dfc704b4e07531721;hb=80e81e3b81b779901fd9d67f8ae030ee30c0bcec;hp=5a8d60f2a1aff635df25825e1ffa01f57645a65f;hpb=8459e625349c03039e7545c213f84d8756034390;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_muteban.cpp b/src/modules/m_muteban.cpp index 5a8d60f2a..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,10 +46,10 @@ class ModuleQuietBan Version GetVersion() CXX11_OVERRIDE { - return Version("Implements extban +b 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) CXX11_OVERRIDE + ModResult HandleMessage(User* user, const MessageTarget& target, bool& echo_original) { if (!IS_LOCAL(user) || target.type != MessageTarget::TYPE_CHANNEL) return MOD_RES_PASSTHRU; @@ -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; }