summaryrefslogtreecommitdiff
path: root/src/modules/m_cban.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-13 19:17:14 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-13 19:17:14 +0000
commit86ce62c9e6ea6db43703ee5017dd4acd323e9959 (patch)
treefa9c35b6f49dbf8624378a244c52d9203a560b3a /src/modules/m_cban.cpp
parent17d91b065e98963451e595d7697357a40a1c4425 (diff)
I think this fixes visual studio oddities
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7284 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_cban.cpp')
-rw-r--r--src/modules/m_cban.cpp4
1 files changed, 3 insertions, 1 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;