summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2013-12-23 16:44:40 -0500
committerTingPing <tingping@tingping.se>2013-12-23 16:44:40 -0500
commitd7e3e4c9a42e1cda4863310b20c5884cd3354826 (patch)
treef58b5dc375529df2b9efa4ab846627a35c9f0628 /src
parent407613a8dbe52f465867b782ffd68ef76de43b55 (diff)
Only return channel sessions from find_channel()
Closes #865
Diffstat (limited to 'src')
-rw-r--r--src/common/hexchat.c2
1 files changed, 1 insertions, 1 deletions
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;