diff options
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_filter.cpp | 5 |
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 */ |