From c876940443add1d8ce4f4ce6914f5f4d1bb0fe75 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 6 Mar 2019 15:50:24 +0000 Subject: [PATCH] Set username/hostname on users on JOIN regardless of whether we know theirs already --- modules/line_handler/channel.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/line_handler/channel.py b/modules/line_handler/channel.py index 3bbc109f..e10c9d22 100644 --- a/modules/line_handler/channel.py +++ b/modules/line_handler/channel.py @@ -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