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,7 +78,6 @@ def join(events, event):
events.on("received.join").call(channel=channel, user=user, events.on("received.join").call(channel=channel, user=user,
server=event["server"], account=account, realname=realname) server=event["server"], account=account, realname=realname)
if not user.username and not user.hostname:
user.username = event["prefix"].username user.username = event["prefix"].username
user.hostname = event["prefix"].hostname user.hostname = event["prefix"].hostname