Fix case where people were not being marked as not-dced if they joined as a different nick and then /nicked to return to village.
This commit is contained in:
parent
c5ff638056
commit
06f51a3731
@ -2004,9 +2004,15 @@ def on_nick(cli, prefix, nick):
|
|||||||
if cloak == clk:
|
if cloak == clk:
|
||||||
cli.mode(chan, "+v", nick, nick+"!*@*")
|
cli.mode(chan, "+v", nick, nick+"!*@*")
|
||||||
del var.DISCONNECTED[nick]
|
del var.DISCONNECTED[nick]
|
||||||
|
var.LAST_SAID_TIME[nick] = datetime.now()
|
||||||
cli.msg(chan, ("\02{0}\02 has returned to "+
|
cli.msg(chan, "\02{0}\02 has returned to the village.".format(nick))
|
||||||
"the village.").format(nick))
|
for r,rlist in var.ORIGINAL_ROLES.items():
|
||||||
|
if "(dced)"+nick in rlist:
|
||||||
|
rlist.remove("(dced)"+nick)
|
||||||
|
rlist.append(nick)
|
||||||
|
break
|
||||||
|
if nick in var.DCED_PLAYERS.keys():
|
||||||
|
var.PLAYERS[nick] = var.DCED_PLAYERS.pop(nick)
|
||||||
|
|
||||||
if prefix in var.NO_LYNCH:
|
if prefix in var.NO_LYNCH:
|
||||||
var.NO_LYNCH.remove(prefix)
|
var.NO_LYNCH.remove(prefix)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user