inspircd

A modular C++ IRC daemon (ircd). https://www.inspircd.org/
Log | Files | Refs | README

commit 2633b577adb924bb486308f5935a56fed231d790
parent d2b94541fc95de18c25bf1b017c20d45cffb9f76
Author: linuxdaemon <linuxdaemon@snoonet.org>
Date:   Wed,  5 Jun 2019 08:23:01 -0500

m_repeat: Fix parsing mode parameter

Diffstat:
Msrc/modules/m_repeat.cpp | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git 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;