common: Port local nicks to NickHighlightMatcher
authorShane Synan <digitalcircuit36939@gmail.com>
Sat, 1 Sep 2018 21:37:32 +0000 (16:37 -0500)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 3 Sep 2018 20:12:02 +0000 (22:12 +0200)
commit4c4fe2b514fc7ecf3186202d73b3b5ff8847763f
treea4f5ba6209430b06a06b8e6b19feecb8abfaf462
parentee8b9f55860e340c1600188fddcfd557c7489f66
common: Port local nicks to NickHighlightMatcher

Port QtUiMessageProcessor nick highlights to NickHighlightMatcher
class, providing easy caching and simplifying expression handling.

This fixes nickname caching being reset when switching between
networks.

Add SIGNAL/SLOT traversal to pass on information about network
removal to clean up per-network nickname highlight caches, avoiding
memory leaks.
src/client/client.cpp
src/qtui/qtuimessageprocessor.cpp
src/qtui/qtuimessageprocessor.h