Browse Source

prevent nick changing DC'd players

master
Jimmy Cao 13 years ago
parent
commit
7946fca603
  1. 2
      wolfgame.py

2
wolfgame.py

@ -1033,7 +1033,7 @@ def on_nick(cli, prefix, nick): @@ -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)

Loading…
Cancel
Save