diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-13 19:17:14 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-13 19:17:14 +0000 |
commit | 86ce62c9e6ea6db43703ee5017dd4acd323e9959 (patch) | |
tree | fa9c35b6f49dbf8624378a244c52d9203a560b3a | |
parent | 17d91b065e98963451e595d7697357a40a1c4425 (diff) |
I think this fixes visual studio oddities
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7284 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_cban.cpp | 4 | ||||
-rw-r--r-- | 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; |