Browse Source

make the end-game messages aware of nick changes that occur during the game

master
jcao219 14 years ago
parent
commit
d9a8a40864
  1. 6
      wolfgame.py

6
wolfgame.py

@ -747,6 +747,12 @@ def on_nick(cli, prefix, nick): @@ -747,6 +747,12 @@ def on_nick(cli, prefix, nick):
var.USERS.remove(prefix)
var.USERS.append(nick)
opl = []
for k,v in var.ORIGINAL_ROLES.items():
if prefix in v:
var.ORIGINAL_ROLES[k].remove(prefix)
var.ORIGINAL_ROLES[k].append(nick)
break
if prefix in var.list_players():
r = var.ROLES[var.get_role(prefix)]

Loading…
Cancel
Save