update username/hostname of Users when they send PRIVMSG/NOTICE/TAGMSG

This commit is contained in:
jesopo 2019-09-26 17:47:45 +01:00
parent 0f87c3c56e
commit 3c2aef52f6

View file

@ -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