From b2fdbd64c6f8aa55832295ed152b7f3c56cdb15f Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 23 Oct 2001 21:28:16 +0000 Subject: 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 --- src/irc/core/channels-query.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/irc/core') 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); } -- cgit v1.2.3