mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 16:42:30 +02:00
parent
1178f753cf
commit
fb9f5174c2
2 changed files with 13 additions and 3 deletions
|
|
@ -37,9 +37,14 @@ static int compare_channel_setup (CONFIG_NODE *node, CHANNEL_SETUP_REC *channel)
|
||||||
name = config_node_get_str(node, "name", NULL);
|
name = config_node_get_str(node, "name", NULL);
|
||||||
chatnet = config_node_get_str(node, "chatnet", NULL);
|
chatnet = config_node_get_str(node, "chatnet", NULL);
|
||||||
|
|
||||||
if (g_strcmp0(name, channel->name) != 0 ||
|
if (name == NULL || chatnet == NULL) {
|
||||||
g_strcmp0(chatnet, channel->chatnet) != 0)
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (g_ascii_strcasecmp(name, channel->name) != 0 ||
|
||||||
|
g_ascii_strcasecmp(chatnet, channel->chatnet) != 0) {
|
||||||
return 1;
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -474,10 +474,15 @@ static int compare_server_setup (CONFIG_NODE *node, SERVER_SETUP_REC *server)
|
||||||
chatnet = config_node_get_str(node, "chatnet", NULL);
|
chatnet = config_node_get_str(node, "chatnet", NULL);
|
||||||
port = config_node_get_int(node, "port", 0);
|
port = config_node_get_int(node, "port", 0);
|
||||||
|
|
||||||
|
if (address == NULL || chatnet == NULL) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (g_strcmp0(address, server->address) != 0 ||
|
if (g_strcmp0(address, server->address) != 0 ||
|
||||||
g_strcmp0(chatnet, server->chatnet) != 0 ||
|
g_strcmp0(chatnet, server->chatnet) != 0 ||
|
||||||
port != server->port)
|
port != server->port) {
|
||||||
return 1;
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue