Actually save account-nick association

This commit is contained in:
Robert Miles 2020-11-16 22:07:45 +00:00
parent 97b5676a71
commit a4b9719a4f
1 changed files with 3 additions and 1 deletions

View File

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