Only run pingmsg after negative has completed

This commit is contained in:
Mark Veidemanis 2022-08-18 07:20:30 +01:00
parent 415a0b1135
commit e4c1d80250
1 changed files with 3 additions and 1 deletions

View File

@ -676,8 +676,10 @@ class IRCBot(IRCClient):
) )
return return
else: 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["check"]:
if sinst["ping"]: if sinst["ping"]:
self.msg(sinst["entity"], sinst["pingmsg"]) self.msg(sinst["entity"], sinst["pingmsg"])