From e132cfab3e3390cb76c86148c5cd499abcbcfb79 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 26 Mar 2004 10:14:32 +0000 Subject: Remember isupport_sent flag correctly. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3248 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/irc-session.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/irc/core') diff --git a/src/irc/core/irc-session.c b/src/irc/core/irc-session.c index cf6a5098..5838e0d9 100644 --- a/src/irc/core/irc-session.c +++ b/src/irc/core/irc-session.c @@ -65,6 +65,7 @@ static void sig_session_save_server(IRC_SERVER_REC *server, CONFIG_REC *config, config_node_set_str(config, node, "away_reason", server->away_reason); config_node_set_bool(config, node, "emode_known", server->emode_known); + config_node_set_bool(config, node, "isupport_sent", server->isupport_sent); isupport = config_node_section(node, "isupport", NODE_TYPE_BLOCK); isupport_data.config = config; isupport_data.node = isupport; @@ -87,6 +88,7 @@ static void sig_session_restore_server(IRC_SERVER_REC *server, server->usermode_away = config_node_get_bool(node, "usermode_away", FALSE); server->away_reason = g_strdup(config_node_get_str(node, "away_reason", NULL)); server->emode_known = config_node_get_bool(node, "emode_known", FALSE); + server->isupport_sent = config_node_get_bool(node, "isupport_sent", FALSE); if (server->isupport == NULL) { server->isupport = g_hash_table_new((GHashFunc) g_istr_hash, @@ -95,8 +97,6 @@ static void sig_session_restore_server(IRC_SERVER_REC *server, node = config_node_section(node, "isupport", -1); tmp = node == NULL ? NULL : config_node_first(node->value); - if(tmp != NULL) - server->isupport_sent = TRUE; for (; tmp != NULL; tmp = config_node_next(tmp)) { node = tmp->data; -- cgit v1.2.3