summaryrefslogtreecommitdiff
path: root/src/modules/m_channelban.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_channelban.cpp')
-rw-r--r--src/modules/m_channelban.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_channelban.cpp b/src/modules/m_channelban.cpp
index 0da6cef2c..66851c5a2 100644
--- a/src/modules/m_channelban.cpp
+++ b/src/modules/m_channelban.cpp
@@ -47,8 +47,7 @@ class ModuleBadChannelExtban : public Module
{
if (c->IsExtBanned(i->first->name, 'j'))
{
- // 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;
}
}