From 2633b577adb924bb486308f5935a56fed231d790 Mon Sep 17 00:00:00 2001 From: linuxdaemon Date: Wed, 5 Jun 2019 08:23:01 -0500 Subject: m_repeat: Fix parsing mode parameter --- src/modules/m_repeat.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/modules') 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 > if ((settings.Lines = ConvToNum(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; -- cgit v1.2.3