]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_silence.cpp
Fix m_silence looking for maxentries in <showwhois> instead of <silence>.
[user/henk/code/inspircd.git] / src / modules / m_silence.cpp
index 817c8ffcfe2e91aae18974c75cca988d1d2fc009..c82ab3f9d6052ecf7c21f571bdfee029291b119a 100644 (file)
@@ -87,7 +87,7 @@ class CommandSVSSilence : public Command
 
                if (IS_LOCAL(u))
                {
-                       ServerInstance->Parser->CallHandler("SILENCE", std::vector<std::string>(++parameters.begin(), parameters.end()), u);
+                       ServerInstance->Parser->CallHandler("SILENCE", std::vector<std::string>(parameters.begin() + 1, parameters.end()), u);
                }
 
                return CMD_SUCCESS;
@@ -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;
        }