diff options
Diffstat (limited to 'src/modules/m_cban.cpp')
-rw-r--r-- | src/modules/m_cban.cpp | 4 |
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; |