aboutsummaryrefslogtreecommitdiff
path: root/modules/line_handler
diff options
context:
space:
mode:
authorGravatar jesopo2019-03-06 15:50:24 +0000
committerGravatar jesopo2019-03-06 15:50:24 +0000
commitc876940443add1d8ce4f4ce6914f5f4d1bb0fe75 (patch)
tree9125562eb76cf7b868cb1201a0333a92f51ec867 /modules/line_handler
parentSend IRCChannel on formatted.topic-timestamp event (diff)
signature
Set username/hostname on users on JOIN regardless of whether we know theirs
already
Diffstat (limited to 'modules/line_handler')
-rw-r--r--modules/line_handler/channel.py5
1 files 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