summaryrefslogtreecommitdiff
path: root/src/modules/m_gecosban.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-05 14:59:06 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-05 14:59:06 +0000
commitf052efe12448d7ad991e90724f064346a12e3a1b (patch)
treeec5ec782e67a11cadc48cb7f85b4e782ac336e07 /src/modules/m_gecosban.cpp
parentb0f3c8ba56b228ef90ca3827fa681ac4afffff9b (diff)
Send ERR_BANNEDFROMCHAN on all extbans preventing join
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10094 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_gecosban.cpp')
-rw-r--r--src/modules/m_gecosban.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_gecosban.cpp b/src/modules/m_gecosban.cpp
index a59508e06..c7194aef5 100644
--- a/src/modules/m_gecosban.cpp
+++ b/src/modules/m_gecosban.cpp
@@ -44,8 +44,7 @@ class ModuleGecosBan : public Module
if (c->IsExtBanned(user->fullname, 'r'))
{
- // XXX: send a numeric here
- user->WriteServ("NOTICE "+std::string(user->nick)+" :*** Cannot join " + c->name + ", as you match a ban");
+ user->WriteNumeric(ERR_BANNEDFROMCHAN, "%s %s :Cannot join channel (You're banned)", user->nick.c_str(), c->name.c_str());
return 1;
}