From e4c1d80250dc7466adbc01beaf6c57c1812cc9ae Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 18 Aug 2022 07:20:30 +0100 Subject: [PATCH] Only run pingmsg after negative has completed --- core/bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/bot.py b/core/bot.py index a368e69..45d7191 100644 --- a/core/bot.py +++ b/core/bot.py @@ -676,8 +676,10 @@ class IRCBot(IRCClient): ) return else: - self._negativePass = True + self._negativePass = True # if it's disabled, we still want the next block to run + # Only run if negativepass has completed, or exempted as above + if self._negativePass: if sinst["check"]: if sinst["ping"]: self.msg(sinst["entity"], sinst["pingmsg"])