]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_muteban.cpp
This file *BROKEN AGAIN* in windows builds (VC9) - uint_16t and uint_32t do not exist...
[user/henk/code/inspircd.git] / src / modules / m_muteban.cpp
index 811c85e0dfb5dfa978df299365e04bbbeb24b842..8a3d40896939bb065a48e51a035a3d7d709765cf 100644 (file)
@@ -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;
                        }
                }