]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_svshold.cpp
Convert more modules
[user/henk/code/inspircd.git] / src / modules / m_svshold.cpp
index 7a164d920f2323a10018aad5cde373140afa61af..f53f0441c82ca86b5d925ca367e423b3cf5848d1 100644 (file)
@@ -245,10 +245,12 @@ class ModuleSVSHold : public Module
        SVSHold* DecodeSVSHold(const std::string &data)
        {
                SVSHold* res = new SVSHold();
+               int set_on;
                irc::tokenstream tokens(data);
                tokens.GetToken(res->nickname);
                tokens.GetToken(res->set_by);
-               tokens.GetToken(res->set_on);
+               tokens.GetToken(set_on);
+               res->set_on = set_on;
                tokens.GetToken(res->length);
                tokens.GetToken(res->reason);
                return res;