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

This commit is contained in:
Jimmy Cao 2011-07-19 23:05:10 -05:00
parent 38c2356534
commit 16d046ecf6

View File

@ -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)]