diff options
author | Timo Sirainen <cras@irssi.org> | 2001-10-23 21:28:16 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-10-23 21:28:16 +0000 |
commit | b2fdbd64c6f8aa55832295ed152b7f3c56cdb15f (patch) | |
tree | 303b858713a4d0770a4f4f1434538f7234613f14 | |
parent | 7793f2fe73cea77b7a491edea57c410cc7623b2b (diff) | |
download | irssi-b2fdbd64c6f8aa55832295ed152b7f3c56cdb15f.zip |
Don't print glib errors when parting a channel which isn't synced yet.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1904 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r-- | src/irc/core/channels-query.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/irc/core/channels-query.c b/src/irc/core/channels-query.c index e05f09e0..9dda5595 100644 --- a/src/irc/core/channels-query.c +++ b/src/irc/core/channels-query.c @@ -391,13 +391,13 @@ static void channel_got_query(IRC_SERVER_REC *server, IRC_CHANNEL_REC *chanrec, rec = server->chanqueries; g_return_if_fail(rec != NULL); - g_return_if_fail(rec->last_query_chan != NULL); /* check if channel is synced */ if (chanrec != NULL) channel_checksync(chanrec); /* check if we need to get another query.. */ - if (g_strcasecmp(rec->last_query_chan, channel) == 0) + if (rec->last_query_chan != NULL && + g_strcasecmp(rec->last_query_chan, channel) == 0) channels_query_check(server); } |