summaryrefslogtreecommitdiff
path: root/src/irc/core/channels-query.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-10-21 11:24:24 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-10-21 11:24:24 +0000
commitfeaee3565367c7022fcbc01c79f8e78b3c5968bc (patch)
tree2018d96bffbdc08665524503fefb37f8ad0f9686 /src/irc/core/channels-query.c
parent3ae5080619c97d57ecc36b60eea651fe4d7302fe (diff)
downloadirssi-feaee3565367c7022fcbc01c79f8e78b3c5968bc.zip
Channels weren't synced if you joined multiple channels at once and one of
the chennels couldn't be joined for some reason. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1877 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/core/channels-query.c')
-rw-r--r--src/irc/core/channels-query.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/irc/core/channels-query.c b/src/irc/core/channels-query.c
index 345e4c23..e05f09e0 100644
--- a/src/irc/core/channels-query.c
+++ b/src/irc/core/channels-query.c
@@ -112,6 +112,8 @@ static void channel_query_add(IRC_CHANNEL_REC *channel, int query)
rec->queries[query] = g_slist_append(rec->queries[query], channel);
}
+static void channels_query_check(IRC_SERVER_REC *server);
+
static void channel_query_remove_all(IRC_CHANNEL_REC *channel)
{
SERVER_QUERY_REC *rec;
@@ -123,7 +125,8 @@ static void channel_query_remove_all(IRC_CHANNEL_REC *channel)
/* remove channel from query lists */
for (n = 0; n < CHANNEL_QUERIES; n++)
rec->queries[n] = g_slist_remove(rec->queries[n], channel);
-}
+
+ channels_query_check(channel->server);}
static void sig_channel_destroyed(IRC_CHANNEL_REC *channel)