Fix bot sending idle warning in PM when messaging it after you're dead
Also changed it to use var.IDLE_WARNED_PM, as @skizzerz suggested a wolf may want to intentionally idle sometimes.
This commit is contained in:
parent
a5a5c1c022
commit
403e491c60
@ -5925,7 +5925,7 @@ def relay(cli, nick, chan, rest):
|
||||
if var.PHASE not in ("night", "day"):
|
||||
return
|
||||
|
||||
if nick in var.IDLE_WARNED:
|
||||
if nick in var.list_players() and nick in var.IDLE_WARNED_PM:
|
||||
cli.msg(nick, ("\u0002You have been idling in {0} for a while. Please say something in {0} "
|
||||
"or you will be declared dead.\u0002").format(botconfig.CHANNEL))
|
||||
var.IDLE_WARNED_PM.add(nick)
|
||||
|
Loading…
x
Reference in New Issue
Block a user