Actually save account-nick association
This commit is contained in:
parent
97b5676a71
commit
a4b9719a4f
|
@ -74,7 +74,9 @@ def on_privmsg(event):
|
|||
# don't trigger on private messages
|
||||
if not event.target.startswith("#"): return
|
||||
# do association first, in case an error occurs elsewhere
|
||||
if "account" in event.tags: bungame_data["association"][event.hostmask.nick]=event.tags["account"]
|
||||
if "account" in event.tags:
|
||||
bungame_data["association"][event.hostmask.nick]=event.tags["account"]
|
||||
bungame_data.save()
|
||||
if not check_bun_active(event.target):
|
||||
if random.random()>(3/4):
|
||||
activate_bun(event.target)
|
||||
|
|
Loading…
Reference in New Issue