summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-06-12 23:18:24 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-06-12 23:18:24 +0000
commit661ad0468874214974c52ae1789d250aca75c4ce (patch)
tree9865e739f817e541d9014d1b4cd4bad82232a86c
parent18f3c74d68e79f5962000770fca9e663bf1b1c23 (diff)
downloadirssi-661ad0468874214974c52ae1789d250aca75c4ce.zip
/HILIGHT -channels didn't work right.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@328 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r--src/fe-common/core/hilight-text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-common/core/hilight-text.c b/src/fe-common/core/hilight-text.c
index 6b5735b0..f78d8904 100644
--- a/src/fe-common/core/hilight-text.c
+++ b/src/fe-common/core/hilight-text.c
@@ -159,7 +159,7 @@ static void sig_print_text_stripped(WINDOW_REC *window, SERVER_REC *server, cons
continue;
if ((level & (rec->level > 0 ? rec->level : DEFAULT_HILIGHT_CHECK_LEVEL)) == 0)
continue;
- if (rec->channels != NULL && !strarray_find(rec->channels, channel))
+ if (rec->channels != NULL && strarray_find(rec->channels, channel) == -1)
continue;
if (rec->regexp) {
if (!regexp_match(str, rec->text))