From d7e3e4c9a42e1cda4863310b20c5884cd3354826 Mon Sep 17 00:00:00 2001 From: TingPing Date: Mon, 23 Dec 2013 16:44:40 -0500 Subject: Only return channel sessions from find_channel() Closes #865 --- src/common/hexchat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common') diff --git a/src/common/hexchat.c b/src/common/hexchat.c index 17309dee..5b23621f 100644 --- a/src/common/hexchat.c +++ b/src/common/hexchat.c @@ -232,7 +232,7 @@ find_channel (server *serv, char *chan) while (list) { sess = list->data; - if ((!serv || serv == sess->server) && sess->type != SESS_DIALOG) + if ((!serv || serv == sess->server) && sess->type == SESS_CHANNEL) { if (!serv->p_cmp (chan, sess->channel)) return sess; -- cgit 1.4.1