Previously, ircMessage->nick() was used to get the login name. This doesn't return the login name for e.g. announcements (USERNOTICE). Since we already know the login name at that point, we can use message().loginName.
This might trigger more highlights where loginName is set, but the nick is unset/invalid, which was probably a bug before too.
Previously,
ircMessage->nick()
was used to get the login name. This doesn't return the login name for e.g. announcements (USERNOTICE
). Since we already know the login name at that point, we can usemessage().loginName
.This might trigger more highlights where
loginName
is set, but the nick is unset/invalid, which was probably a bug before too.Fixes #5294.