summaryrefslogtreecommitdiff
path: root/src/modules/m_muteban.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2009-03-22 18:43:42 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2009-03-22 18:43:42 +0000
commitfa2d0dd4f0e96cf0e937cc3e79b68519e15f2fb0 (patch)
tree22b8cdf5cd6cce48dd65d43c6c45b2063be3f5ba /src/modules/m_muteban.cpp
parentd84050a6c8334774feb71ed0b3a8a60977b376a5 (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.cpp4
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;
}
}