Change more user.id references to get_id()

This commit is contained in:
jesopo 2018-09-05 13:34:21 +01:00
parent fa18d5ca4c
commit c4cedbe697

View file

@ -230,7 +230,7 @@ class LineHandler(object):
if account: if account:
user.identified_account = account user.identified_account = account
user.identified_account_id = event["server"].get_user( user.identified_account_id = event["server"].get_user(
account).id account).get_id()
if realname: if realname:
user.realname = realname user.realname = realname
@ -478,7 +478,7 @@ class LineHandler(object):
if not event["args"][0] == "*": if not event["args"][0] == "*":
user.identified_account = event["args"][0] user.identified_account = event["args"][0]
user.identified_account_id = event["server"].get_user( user.identified_account_id = event["server"].get_user(
event["args"][0]).id event["args"][0]).get_id()
self.events.on("received.account.login").call(user=user, self.events.on("received.account.login").call(user=user,
server=event["server"], account=event["args"][0]) server=event["server"], account=event["args"][0])
else: else: