Only run pingmsg after negative has completed
This commit is contained in:
parent
415a0b1135
commit
e4c1d80250
|
@ -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"])
|
||||||
|
|
Loading…
Reference in New Issue