]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_muteban.cpp
Sync helpop chmodes s and p with docs
[user/henk/code/inspircd.git] / src / modules / m_muteban.cpp
index acfcb1801260b7a6b145a59393ea2b1524bfcff6..788003937acaa21727e3b376ae5ba2dc1634f2b2 100644 (file)
@@ -1,7 +1,11 @@
 /*
  * InspIRCd -- Internet Relay Chat Daemon
  *
+ *   Copyright (C) 2013, 2017, 2019-2021 Sadie Powell <sadie@witchery.services>
+ *   Copyright (C) 2012, 2018 Robby <robby@chatbelgie.be>
+ *   Copyright (C) 2009 Uli Schlachter <psychon@inspircd.org>
  *   Copyright (C) 2009 Daniel De Graaf <danieldg@inspircd.org>
+ *   Copyright (C) 2008, 2010 Craig Edwards <brain@inspircd.org>
  *   Copyright (C) 2008 Robin Burchell <robin+git@viroteck.net>
  *
  * 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;
                }