diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-03-22 18:43:42 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-03-22 18:43:42 +0000 |
commit | fa2d0dd4f0e96cf0e937cc3e79b68519e15f2fb0 (patch) | |
tree | 22b8cdf5cd6cce48dd65d43c6c45b2063be3f5ba /src/modules/m_muteban.cpp | |
parent | d84050a6c8334774feb71ed0b3a8a60977b376a5 (diff) |
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
Diffstat (limited to 'src/modules/m_muteban.cpp')
-rw-r--r-- | src/modules/m_muteban.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; } } |