]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix m_silence looking for maxentries in <showwhois> instead of <silence>.
authorPeter Powell <petpow@saberuk.com>
Wed, 23 Oct 2013 22:46:08 +0000 (23:46 +0100)
committerattilamolnar <attilamolnar@hush.com>
Sat, 26 Oct 2013 12:10:24 +0000 (14:10 +0200)
Fixes issue #644.

src/modules/m_silence.cpp

index ce5b2650068c145c1ade986e3930dc12d549db6d..c82ab3f9d6052ecf7c21f571bdfee029291b119a 100644 (file)
@@ -315,7 +315,7 @@ class ModuleSilence : public Module
 
        void OnRehash(User* user)
        {
-               maxsilence = ServerInstance->Config->ConfValue("showwhois")->getInt("maxentries", 32);
+               maxsilence = ServerInstance->Config->ConfValue("silence")->getInt("maxentries", 32);
                if (!maxsilence)
                        maxsilence = 32;
        }