Nickname occurring coincidentally as substring of larger word shouldn't fire a mention
Mc
on gtk+
mentioned that they get notified in bold for loads of spurious messages, e.g. people talking to mclasen
or about McDonald's
.
I was going to suggest this be refined so that only a whole-word match on the nickname will count as a mention, equivalent to sticking regex \<
and \>
around the nickname before testing whether it occurs in the message.
However, Florian showed me this BZ - If "nick" is online, mark "nick-afk", "nick|bbl" etc. as online in the log too - which quite rightly pointed out that more nuance is desirable for cases like this:
Highlight [and consider on/offline] any of "nick", "nick_", "nick-afk" or "nick|bbl" when my nick matches any of those variations.
That makes sense, but maybe the matching could/should be less fuzzy - i.e. stop when the nick is immediately preceded/followed by letters (and maybe numbers, or at least leading numbers, and etc.)
That is: it'd be good if possible to reduce spurious matches, while not breaking (reasonable variations of) the cases accommodated in that BZ.