summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;