diff options
author | linuxdaemon <linuxdaemon@snoonet.org> | 2019-06-05 08:23:01 -0500 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-06-05 15:27:12 +0100 |
commit | 2633b577adb924bb486308f5935a56fed231d790 (patch) | |
tree | 19898c2306d32c237cb73b71a2bf5e9733d5756d | |
parent | d2b94541fc95de18c25bf1b017c20d45cffb9f76 (diff) |
m_repeat: Fix parsing mode parameter
-rw-r--r-- | src/modules/m_repeat.cpp | 5 |
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; |