aboutsummaryrefslogtreecommitdiff
path: root/modules/line_handler
diff options
context:
space:
mode:
authorGravatar jesopo2019-09-26 17:47:45 +0100
committerGravatar jesopo2019-09-26 17:47:45 +0100
commit3c2aef52f6535b880658ff77d9e2b06e61837052 (patch)
treeba5d3a284608a2eed9a2686b5112094552374794 /modules/line_handler
parentadd check_certificate.py, to warn about expiring or not valid client certs (diff)
signature
update username/hostname of Users when they send PRIVMSG/NOTICE/TAGMSG
Diffstat (limited to 'modules/line_handler')
-rw-r--r--modules/line_handler/message.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/line_handler/message.py b/modules/line_handler/message.py
index e644d08e..533420dc 100644
--- a/modules/line_handler/message.py
+++ b/modules/line_handler/message.py
@@ -35,6 +35,8 @@ def message(events, event):
user = event["server"].get_user(event["server"].nickname)
else:
user = event["server"].get_user(event["line"].source.nickname)
+ user.username = event["line"].source.username
+ user.hostname = event["line"].source.hostname
# strip prefix_symbols from the start of target, for when people use
# e.g. 'PRIVMSG +#channel :hi' which would send a message to only