]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_muteban.cpp
Add a way to disable using environment variables in included files.
[user/henk/code/inspircd.git] / src / modules / m_muteban.cpp
index acfcb1801260b7a6b145a59393ea2b1524bfcff6..8006f81521503b903e6b146adca44e528c55e276 100644 (file)
@@ -1,7 +1,12 @@
 /*
  * InspIRCd -- Internet Relay Chat Daemon
  *
+ *   Copyright (C) 2016 Attila Molnar <attilamolnar@hush.com>
+ *   Copyright (C) 2013, 2017, 2019 Sadie Powell <sadie@witchery.services>
+ *   Copyright (C) 2012, 2018-2019 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
@@ -59,7 +64,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;
                }