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,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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue