summaryrefslogtreecommitdiff
path: root/src/irc/core
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2004-03-26 10:14:32 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2004-03-26 10:14:32 +0000
commite132cfab3e3390cb76c86148c5cd499abcbcfb79 (patch)
tree1cbad7bfc9a49b5d9d8821430d3bb50bcdfe3914 /src/irc/core
parenta589b0e2b4a6e5408dfc716388e8cbb05d02c16c (diff)
downloadirssi-e132cfab3e3390cb76c86148c5cd499abcbcfb79.zip
Remember isupport_sent flag correctly.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3248 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/core')
-rw-r--r--src/irc/core/irc-session.c4
1 files changed, 2 insertions, 2 deletions
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;