Fix indent (blame woffle)
You can't `.update()` a dict you're currently iterating over.
This commit is contained in:
parent
d9812e552d
commit
112ffdf80b
@ -3244,9 +3244,9 @@ def rename_player(cli, prefix, nick):
|
||||
if c == prefix:
|
||||
c = nick
|
||||
kvp.append((a,(b,c)))
|
||||
dictvar.update(kvp)
|
||||
if prefix in dictvar.keys():
|
||||
del dictvar[prefix]
|
||||
dictvar.update(kvp)
|
||||
if prefix in dictvar.keys():
|
||||
del dictvar[prefix]
|
||||
for dictvar in (var.VENGEFUL_GHOSTS, var.TOTEMS, var.FINAL_ROLES, var.BITTEN, var.GUNNERS, var.TURNCOATS,
|
||||
var.DOCTORS, var.BITTEN_ROLES, var.LYCAN_ROLES, var.AMNESIAC_ROLES):
|
||||
if prefix in dictvar.keys():
|
||||
|
Loading…
Reference in New Issue
Block a user