From fa2d0dd4f0e96cf0e937cc3e79b68519e15f2fb0 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 22 Mar 2009 18:43:42 +0000 Subject: Apply ankit's patch for bug #780 with a minor tweak, re-introduce the 4-param 404 numeric, this should not affect any clients but should make scripts and bots lives easier. Thanks ankit. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11244 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_muteban.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_muteban.cpp') diff --git a/src/modules/m_muteban.cpp b/src/modules/m_muteban.cpp index 811c85e0d..8a3d40896 100644 --- a/src/modules/m_muteban.cpp +++ b/src/modules/m_muteban.cpp @@ -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; } } -- cgit v1.3.1-10-gc9f91