]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_blockcaps.cpp
cgiirc: Pass hosts to WEBIRC command on rehash. No fucking wonder this never worked...
[user/henk/code/inspircd.git] / src / modules / m_blockcaps.cpp
index 0b1cc22616458aab2746dbe7601bd4946b9d9483..f5bcfd585bb25b222d66f58467f7da3ee884b144 100644 (file)
@@ -34,7 +34,7 @@ public:
 
        ModuleBlockCAPS(InspIRCd* Me) : Module(Me)
        {
-               OnRehash(NULL,"");
+               OnRehash(NULL);
                bc = new BlockCaps(ServerInstance);
                if (!ServerInstance->Modes->AddMode(bc))
                {
@@ -50,7 +50,7 @@ public:
                ServerInstance->AddExtBanChar('B');
        }
 
-       virtual void OnRehash(User* user, const std::string &param)
+       virtual void OnRehash(User* user)
        {
                ReadConf();
        }
@@ -90,7 +90,7 @@ public:
                                }
                                if ( ((caps*100)/(int)text.length()) >= percent )
                                {
-                                       user->WriteNumeric(ERR_CANNOTSENDTOCHAN, "%s %s :Your line cannot be more than %d%% capital letters if it is %d or more letters long", user->nick.c_str(), c->name.c_str(), percent, minlen);
+                                       user->WriteNumeric(ERR_CANNOTSENDTOCHAN, "%s %s :Your message cannot contain more than %d%% capital letters if it's longer than %d characters", user->nick.c_str(), c->name.c_str(), percent, minlen);
                                        return 1;
                                }
                        }