Set username/hostname on users on JOIN regardless of whether we know theirs
already
This commit is contained in:
parent
fb5b956f99
commit
c876940443
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue