update username/hostname of Users when they send PRIVMSG/NOTICE/TAGMSG
This commit is contained in:
parent
0f87c3c56e
commit
3c2aef52f6
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue