From 86ce62c9e6ea6db43703ee5017dd4acd323e9959 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 13 Jun 2007 19:17:14 +0000 Subject: I think this fixes visual studio oddities git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7284 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_cban.cpp | 4 +++- src/modules/m_svshold.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/modules/m_cban.cpp b/src/modules/m_cban.cpp index 3b6c4eccd..996c710f3 100644 --- a/src/modules/m_cban.cpp +++ b/src/modules/m_cban.cpp @@ -209,10 +209,12 @@ class ModuleCBan : public Module CBan DecodeCBan(const std::string &data) { CBan res; + int set_on; irc::tokenstream tokens(data); tokens.GetToken(res.chname); 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; 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; -- cgit v1.2.3