diff options
author | TingPing <tingping@tingping.se> | 2013-12-23 16:44:40 -0500 |
---|---|---|
committer | TingPing <tingping@tingping.se> | 2013-12-23 16:44:40 -0500 |
commit | d7e3e4c9a42e1cda4863310b20c5884cd3354826 (patch) | |
tree | f58b5dc375529df2b9efa4ab846627a35c9f0628 /src/common/hexchat.c | |
parent | 407613a8dbe52f465867b782ffd68ef76de43b55 (diff) |
Only return channel sessions from find_channel()
Closes #865
Diffstat (limited to 'src/common/hexchat.c')
-rw-r--r-- | src/common/hexchat.c | 2 |
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; |