Repeat idle warning in PM if the player is PMing the bot

This commit is contained in:
nyuszika7h 2015-08-27 21:07:53 +02:00
parent 77619306ec
commit 8be512c216

View File

@ -5925,6 +5925,11 @@ def relay(cli, nick, chan, rest):
if var.PHASE not in ("night", "day"):
return
if nick in var.IDLE_WARNED:
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)
badguys = var.list_players(var.WOLFCHAT_ROLES)
if len(badguys) > 1:
if nick in badguys: