Update a user's ircv3 account if a PRIVMSG has an "account" tag
This commit is contained in:
parent
02d361c8b6
commit
cc371e3ae0
1 changed files with 5 additions and 0 deletions
|
@ -417,6 +417,11 @@ class LineHandler(object):
|
|||
if message.endswith("\x01"):
|
||||
message = message[:-1]
|
||||
|
||||
if "account" in event["tags"]:
|
||||
user.identified_account = event["tags"]["account"]
|
||||
user.identified_account_id = event["server"].get_user(
|
||||
event["tags"]["account"]).get_id()
|
||||
|
||||
kwargs = {"message": message, "message_split": message_split,
|
||||
"server": event["server"], "tags": event["tags"],
|
||||
"action": action}
|
||||
|
|
Loading…
Reference in a new issue