summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_cban.cpp4
-rw-r--r--src/modules/m_svshold.cpp4
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;