diff options
Diffstat (limited to 'src/modules/m_svshold.cpp')
-rw-r--r-- | src/modules/m_svshold.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/m_svshold.cpp b/src/modules/m_svshold.cpp index 7a164d920..f53f0441c 100644 --- a/src/modules/m_svshold.cpp +++ b/src/modules/m_svshold.cpp @@ -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; |