]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_services_account.cpp
Forward port r10133.
[user/henk/code/inspircd.git] / src / modules / m_services_account.cpp
index 118e152e312e538c2bbcc803f0dc8a2a45cc3849..76712df61a0d40458edd25af315e5302fcda96ef 100644 (file)
@@ -164,7 +164,7 @@ class ModuleServicesAccount : public Module
                                if (chan->IsExtBanned(*account, 'R'))
                                {
                                        // may not join
-                                       user->WriteNumeric(477, ""+std::string(user->nick)+" "+std::string(chan->name)+" :You may not join. this channel");
+                                       user->WriteNumeric(ERR_BANNEDFROMCHAN, "%s %s :Cannot join channel (You're banned)", user->nick.c_str(),  chan->name.c_str());
                                        return 1;
                                }
                        }