summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorlinuxdaemon <linuxdaemon@snoonet.org>2019-06-05 08:23:01 -0500
committerPeter Powell <petpow@saberuk.com>2019-06-05 15:27:12 +0100
commit2633b577adb924bb486308f5935a56fed231d790 (patch)
tree19898c2306d32c237cb73b71a2bf5e9733d5756d /src/modules
parentd2b94541fc95de18c25bf1b017c20d45cffb9f76 (diff)
m_repeat: Fix parsing mode parameter
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_repeat.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/modules/m_repeat.cpp b/src/modules/m_repeat.cpp
index 609fd9d60..a2e9b1f8b 100644
--- a/src/modules/m_repeat.cpp
+++ b/src/modules/m_repeat.cpp
@@ -277,10 +277,7 @@ class RepeatMode : public ParamMode<RepeatMode, SimpleExtItem<ChannelSettings> >
if ((settings.Lines = ConvToNum<unsigned int>(item)) == 0)
return false;
- if (!InspIRCd::Duration(item, settings.Seconds))
- return false;
-
- if ((!stream.GetToken(item)) || (settings.Seconds == 0))
+ if ((!stream.GetToken(item)) || !InspIRCd::Duration(item, settings.Seconds) || (settings.Seconds == 0))
// Required parameter missing
return false;