]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_muteban.cpp
Strip SUPPORT_IP6LINKS #define
[user/henk/code/inspircd.git] / src / modules / m_muteban.cpp
index 11c87976bb89b22537dd618c68c9aee99fe47767..8a3d40896939bb065a48e51a035a3d7d709765cf 100644 (file)
@@ -3,7 +3,7 @@
  *       +------------------------------------+
  *
  *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
- * See: http://www.inspircd.org/wiki/index.php/Credits
+ * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
  *            the file COPYING for details.
@@ -43,7 +43,7 @@ class ModuleQuietBan : public Module
                {
                        if (((Channel *)dest)->GetExtBanStatus(user, 'm') < 0)
                        {
-                               user->WriteServ("NOTICE "+std::string(user->nick)+" :*** Cannot send to " + ((Channel *)dest)->name + ", as you are muted");
+                               user->WriteNumeric(404, "%s %s :Cannot send to channel (you're muted)",user->nick.c_str(), ((Channel *)dest)->name.c_str());
                                return 1;
                        }
                }
@@ -60,7 +60,7 @@ class ModuleQuietBan : public Module
                {
                        if (((Channel *)dest)->GetExtBanStatus(user, 'm') < 0)
                        {
-                               user->WriteServ("NOTICE "+std::string(user->nick)+" :*** Cannot send to " + ((Channel *)dest)->name + ", as you are muted");
+                               user->WriteNumeric(404, "%s %s :Cannot send to channel (you're muted)",user->nick.c_str(), ((Channel *)dest)->name.c_str());
                                return 1;
                        }
                }