diff options
author | LemonBoy <thatlemon@gmail.com> | 2018-03-08 20:35:00 +0100 |
---|---|---|
committer | LemonBoy <thatlemon@gmail.com> | 2018-03-08 20:35:00 +0100 |
commit | fb9f5174c2f85c113dac8dbc1d146fe530e53e44 (patch) | |
tree | fcfd1583a1750552d7899f743fae74eacf392b91 /src/core/servers-setup.c | |
parent | 1178f753cf07cbbfd000d6b0fccf5a5dd7b54b5b (diff) | |
download | irssi-fb9f5174c2f85c113dac8dbc1d146fe530e53e44.zip |
Compare channels/networks fields case-insensitively
Fixes #856
Diffstat (limited to 'src/core/servers-setup.c')
-rw-r--r-- | src/core/servers-setup.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/servers-setup.c b/src/core/servers-setup.c index 9492c58c..878dd0ea 100644 --- a/src/core/servers-setup.c +++ b/src/core/servers-setup.c @@ -474,10 +474,15 @@ static int compare_server_setup (CONFIG_NODE *node, SERVER_SETUP_REC *server) chatnet = config_node_get_str(node, "chatnet", NULL); port = config_node_get_int(node, "port", 0); + if (address == NULL || chatnet == NULL) { + return 0; + } + if (g_strcmp0(address, server->address) != 0 || g_strcmp0(chatnet, server->chatnet) != 0 || - port != server->port) + port != server->port) { return 1; + } return 0; } |