summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2018-08-09 16:33:27 +0100
committerPeter Powell <petpow@saberuk.com>2018-08-10 13:55:32 +0100
commitaa6912f1c9845386180df91b20b6ecd3b78ba4b9 (patch)
treee3fd1a7c7dd5d0c844ea4aab60aea536c1c7e155 /src/modules
parent36899e44eec416f5cd74cfe2d61baa984963dbe0 (diff)
Remove the integer overloads of irc::tokenparser::GetToken().
The int overload was never used and the long overload was used in one place.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_filter.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_filter.cpp b/src/modules/m_filter.cpp
index c039c0455..f7d73ac4a 100644
--- a/src/modules/m_filter.cpp
+++ b/src/modules/m_filter.cpp
@@ -587,7 +587,10 @@ FilterResult ModuleFilter::DecodeFilter(const std::string &data)
if (c != 0)
throw ModuleException("Invalid flag: '" + std::string(1, c) + "'");
- tokens.GetToken(res.duration);
+ std::string duration;
+ tokens.GetToken(duration);
+ res.duration = ConvToInt(duration);
+
tokens.GetToken(res.reason);
/* Hax to allow spaces in the freeform without changing the design of the irc protocol */