1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-22 09:12:22 -05:00

Only return channel sessions from find_channel()

Closes #865
This commit is contained in:
TingPing 2013-12-23 16:44:40 -05:00
parent 407613a8db
commit d7e3e4c9a4

View File

@ -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;