mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 12:53:42 +02:00
properly ignore empty lines and comments in servers and channels config
fixes #1242
This commit is contained in:
parent
f57dcfe90d
commit
ae5e2fe5e5
2 changed files with 8 additions and 0 deletions
|
|
@ -472,6 +472,10 @@ static int compare_server_setup (CONFIG_NODE *node, SERVER_SETUP_REC *server)
|
|||
char *address, *chatnet;
|
||||
int port;
|
||||
|
||||
/* skip comment nodes */
|
||||
if (node->type == NODE_TYPE_COMMENT)
|
||||
return -1;
|
||||
|
||||
address = config_node_get_str(node, "address", NULL);
|
||||
chatnet = config_node_get_str(node, "chatnet", NULL);
|
||||
port = config_node_get_int(node, "port", 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue