From 7946fca6032641082c42952c026374cd5eac6fa0 Mon Sep 17 00:00:00 2001 From: Jimmy Cao Date: Mon, 10 Oct 2011 19:21:41 -0500 Subject: [PATCH] prevent nick changing DC'd players --- wolfgame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfgame.py b/wolfgame.py index 63060a2..74521e0 100644 --- a/wolfgame.py +++ b/wolfgame.py @@ -1033,7 +1033,7 @@ def on_nick(cli, prefix, nick): var.CURSED.append(nick) var.CURSED.remove(prefix) - if prefix in var.list_players(): + if prefix in var.list_players() and prefix not in var.DISCONNECTED.keys(): r = var.ROLES[var.get_role(prefix)] r.append(nick) r.remove(prefix)