client: Migrate old highlight Channels to RegEx
authorShane Synan <digitalcircuit36939@gmail.com>
Mon, 14 May 2018 04:53:57 +0000 (23:53 -0500)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 6 Jun 2018 17:15:14 +0000 (19:15 +0200)
commited7cd841afa09766477e3bd03ff1700321d2540c
tree4eecc493becc5589e0e1fa55a6aff1f0c158121a
parentd261638f2e30aa47a08f1c3f43372da0c0e8d13f
client: Migrate old highlight Channels to RegEx

Add new settings minor version 8 to migrate existing local highlight
rules to the new format.  Specifically, any highlight rule with a
specified "Channel" filter is adapted into a regular-expression rule.

> Before
Name: a word
RegEx: disabled
Channel: (ChannelA|AnotherPlace)
> After
Name: (^|\W)a word(\W|$)
RegEx: enabled
Channel: (ChannelA|AnotherPlace)

This way RegEx channel rules will work by default now that the RegEx
flag controls wildcard vs. reg-ex for channel names, too.  And this
specific migration is backwards-compatible with previous client
versions, so downgrading won't break highlight rules.

(Functionality changed in other migration steps might break on
 downgrade, however.)
src/qtui/qtuiapplication.cpp