Set username/hostname on users on JOIN regardless of whether we know theirs

already
This commit is contained in:
jesopo 2019-03-06 15:50:24 +00:00
parent fb5b956f99
commit c876940443

View file

@ -78,9 +78,8 @@ def join(events, event):
events.on("received.join").call(channel=channel, user=user,
server=event["server"], account=account, realname=realname)
if not user.username and not user.hostname:
user.username = event["prefix"].username
user.hostname = event["prefix"].hostname
user.username = event["prefix"].username
user.hostname = event["prefix"].hostname
if account:
user.identified_account = account