Only run pingmsg after negative has completed

This commit is contained in:
Mark Veidemanis 2022-08-18 07:20:30 +01:00
parent d795af164f
commit aeee745ac9
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 3 additions and 1 deletions

View File

@ -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"])