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) while (list)
{ {
sess = list->data; 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)) if (!serv->p_cmp (chan, sess->channel))
return sess; return sess;