]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_silence.cpp
Merge pull request #495 from SaberUK/master+fix-libcpp
[user/henk/code/inspircd.git] / src / modules / m_silence.cpp
index 817c8ffcfe2e91aae18974c75cca988d1d2fc009..d1885269d04975ea035c302688338e4f5f8718fa 100644 (file)
@@ -320,10 +320,10 @@ class ModuleSilence : public Module
                        maxsilence = 32;
        }
 
-       void On005Numeric(std::string &output)
+       void On005Numeric(std::map<std::string, std::string>& tokens)
        {
-               // we don't really have a limit...
-               output = output + " ESILENCE SILENCE=" + ConvToStr(maxsilence);
+               tokens["ESILENCE"];
+               tokens["SILENCE"] = ConvToStr(maxsilence);
        }
 
        void OnBuildExemptList(MessageType message_type, Channel* chan, User* sender, char status, CUList &exempt_list, const std::string &text)
@@ -393,10 +393,6 @@ class ModuleSilence : public Module
                return MOD_RES_PASSTHRU;
        }
 
-       ~ModuleSilence()
-       {
-       }
-
        Version GetVersion()
        {
                return Version("Provides support for the /SILENCE command", VF_OPTCOMMON | VF_VENDOR);