common: Apply RegEx, CS column to sender, channel
authorShane Synan <digitalcircuit36939@gmail.com>
Mon, 28 May 2018 20:33:05 +0000 (15:33 -0500)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 6 Jun 2018 17:15:14 +0000 (19:15 +0200)
commitd261638f2e30aa47a08f1c3f43372da0c0e8d13f
treef10bd45675352feb530dce99b692c1ef76d267dc
parent63fc3ba0333a0555f6f04d49a45aa321b07d10ac
common: Apply RegEx, CS column to sender, channel

Modify scopeMatch to optionally treat the rule as a regular
expression, and to treat it as case-sensitive or not.

Modify highlight rule processing to...
* Use scopeMatch for "Sender", allowing easy multi-sender rules
* Treat both "Sender" and "Channel" as regular expressions if "RegEx"
  is checked, allowing for full regular expression power.
  (Breaks existing rules with RegEx matching, but in a different way)

This means it is no longer possible to use RegEx matching for the
"Sender" and "Channel" yet not on the phrase itself.  However, it
should be easy enough to work around this by using the same phrase
regular expression Quassel does.

This should simplify common highlight rules without limiting those
who know regular expressions.  Win-win, hopefully?

Update tooltips to reflect these changes.
src/client/clientignorelistmanager.cpp
src/common/highlightrulemanager.cpp
src/common/ignorelistmanager.cpp
src/common/util.cpp
src/common/util.h
src/qtui/qtuimessageprocessor.cpp
src/qtui/settingspages/corehighlightsettingspage.cpp
src/qtui/settingspages/highlightsettingspage.cpp
src/qtui/settingspages/ignorelisteditdlg.ui