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
1 changed files with 1 additions and 1 deletions

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;