diff options
author | Timo Sirainen <cras@irssi.org> | 2002-02-02 17:37:44 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-02-02 17:37:44 +0000 |
commit | 0ce3f8243eb564063c66a1b32169109af17e4081 (patch) | |
tree | 834275a5cb412c07efafc83a2f180e3cf5d697d0 /src/core/session.c | |
parent | 85b63bf5465f4cc6d2fd1472cb9e87c5b6719f63 (diff) | |
download | irssi-0ce3f8243eb564063c66a1b32169109af17e4081.zip |
Comments are now allowed everywhere in config files.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2374 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/session.c')
-rw-r--r-- | src/core/session.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/core/session.c b/src/core/session.c index e72bf64a..0248f13e 100644 --- a/src/core/session.c +++ b/src/core/session.c @@ -201,7 +201,8 @@ static void session_restore_channel_nicks(CHANNEL_REC *channel, /* restore nicks */ node = config_node_section(node, "nicks", -1); if (node != NULL && node->type == NODE_TYPE_LIST) { - for (tmp = node->value; tmp != NULL; tmp = tmp->next) { + tmp = config_node_first(node->value); + for (; tmp != NULL; tmp = config_node_next(tmp)) { signal_emit("session restore nick", 2, channel, tmp->data); } @@ -233,7 +234,8 @@ static void session_restore_server_channels(SERVER_REC *server, /* restore channels */ node = config_node_section(node, "channels", -1); if (node != NULL && node->type == NODE_TYPE_LIST) { - for (tmp = node->value; tmp != NULL; tmp = tmp->next) + tmp = config_node_first(node->value); + for (; tmp != NULL; tmp = config_node_next(tmp)) session_restore_channel(server, tmp->data); } } @@ -304,7 +306,8 @@ static void sig_session_restore(CONFIG_REC *config) /* restore servers */ node = config_node_traverse(config, "(servers", FALSE); if (node != NULL) { - for (tmp = node->value; tmp != NULL; tmp = config_node_next(tmp)) + tmp = config_node_first(node->value); + for (; tmp != NULL; tmp = config_node_next(tmp)) session_restore_server(tmp->data); } |