mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 08:32:07 +02:00
Comments are now allowed everywhere in config files.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2374 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
85b63bf546
commit
0ce3f8243e
14 changed files with 45 additions and 52 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue