From 661ad0468874214974c52ae1789d250aca75c4ce Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 12 Jun 2000 23:18:24 +0000 Subject: [PATCH] /HILIGHT -channels didn't work right. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@328 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/hilight-text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))