1
0
mirror of https://github.com/irssi/irssi.git synced 2025-01-03 14:56:47 -05:00

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
This commit is contained in:
Timo Sirainen 2001-10-23 21:28:16 +00:00 committed by cras
parent 7793f2fe73
commit b2fdbd64c6

View File

@ -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);
}