From: Steve Green <steveg@ep...> - 2002-10-11 22:50:49
I am planning to finish the channel list window today or tomorrow.
In fe-gtk, Peter has a 2 checkboxes for regex match. 1 is for topic,
and the other is for channel. For example.. enter a pattern, click the
topic or channel check, and the channel list will only display channels
that match. Without looking at the code, what would you expect the
behaviour to be when both checks are on?
Now look at the code.. From what I see, Peter will match the entry iff
the regex matches both the channel and the topic. I feel this is
horrible. But wait, it's gets better. He will do exactly the same
thing if neither check is on!? Did I read it wrong? I hope so :)
As you may or may not know, one of my goals is to match fe-gtk as much
as possible. If not for that goal, this is what I would do.
No checks = no regex
Both checks = topic or channel
Lets face it, if you enter .*apple.* then you probably interested in
apples in which case you will probably want to see channels that contain
apple in the topic _or_ the channel name.