Update a user's ircv3 account if a PRIVMSG has an "account" tag

This commit is contained in:
jesopo 2018-09-21 10:35:18 +01:00
parent 02d361c8b6
commit cc371e3ae0

View file

@ -417,6 +417,11 @@ class LineHandler(object):
if message.endswith("\x01"): if message.endswith("\x01"):
message = message[:-1] 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, kwargs = {"message": message, "message_split": message_split,
"server": event["server"], "tags": event["tags"], "server": event["server"], "tags": event["tags"],
"action": action} "action": action}