Only run pingmsg after negative has completed

Mark Veidemanis 2 years ago
parent d795af164f
commit aeee745ac9
Signed by: m
GPG Key ID: 5ACFCEED46C0904F

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

Loading…
Cancel
Save