summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/channels-setup.c7
-rw-r--r--src/core/chatnets.c11
-rw-r--r--src/core/ignore.c10
-rw-r--r--src/core/network.c4
-rw-r--r--src/core/servers-setup.c8
5 files changed, 3 insertions, 37 deletions
diff --git a/src/core/channels-setup.c b/src/core/channels-setup.c
index e434cd9c..ac9b1c23 100644
--- a/src/core/channels-setup.c
+++ b/src/core/channels-setup.c
@@ -118,13 +118,6 @@ static CHANNEL_SETUP_REC *channel_setup_read(CONFIG_NODE *node)
channel = config_node_get_str(node, "name", NULL);
chatnet = config_node_get_str(node, "chatnet", NULL);
- if (chatnet == NULL) /* FIXME: remove this after .98... */ {
- chatnet = g_strdup(config_node_get_str(node, "ircnet", NULL));
- if (chatnet != NULL) {
- iconfig_node_set_str(node, "chatnet", chatnet);
- iconfig_node_set_str(node, "ircnet", NULL);
- }
- }
chatnetrec = chatnet == NULL ? NULL : chatnet_find(chatnet);
if (channel == NULL || chatnetrec == NULL) {
diff --git a/src/core/chatnets.c b/src/core/chatnets.c
index 1b1b718c..8739ff7d 100644
--- a/src/core/chatnets.c
+++ b/src/core/chatnets.c
@@ -168,17 +168,6 @@ static void read_chatnets(void)
chatnet_destroy(chatnets->data);
node = iconfig_node_traverse("chatnets", FALSE);
- if (node == NULL) {
- /* FIXME: remove after .98 */
- node = iconfig_node_traverse("ircnets", FALSE);
- if (node != NULL) {
- /* very dirty method - doesn't update hashtables
- but this will do temporarily.. */
- g_free(node->key);
- node->key = g_strdup("chatnets");
- }
- }
-
if (node != NULL) {
tmp = config_node_first(node->value);
for (; tmp != NULL; tmp = config_node_next(tmp))
diff --git a/src/core/ignore.c b/src/core/ignore.c
index 23bdf83c..cebbc3b0 100644
--- a/src/core/ignore.c
+++ b/src/core/ignore.c
@@ -418,19 +418,9 @@ static void read_ignores(void)
ignores = g_slist_append(ignores, rec);
rec->mask = g_strdup(config_node_get_str(node, "mask", NULL));
- if (rec->mask != NULL && strcmp(rec->mask, "*") == 0) {
- /* FIXME: remove after .98 */
- g_free(rec->mask);
- rec->mask = NULL;
- }
rec->pattern = g_strdup(config_node_get_str(node, "pattern", NULL));
rec->level = level2bits(config_node_get_str(node, "level", ""));
rec->exception = config_node_get_bool(node, "exception", FALSE);
- if (*config_node_get_str(node, "except_level", "") != '\0') {
- /* FIXME: remove after .98 */
- rec->level = level2bits(config_node_get_str(node, "except_level", ""));
- rec->exception = TRUE;
- }
rec->regexp = config_node_get_bool(node, "regexp", FALSE);
rec->fullword = config_node_get_bool(node, "fullword", FALSE);
rec->replies = config_node_get_bool(node, "replies", FALSE);
diff --git a/src/core/network.c b/src/core/network.c
index 3904d01c..6be87113 100644
--- a/src/core/network.c
+++ b/src/core/network.c
@@ -414,7 +414,9 @@ int net_gethostbyname(const char *addr, IPADDR *ip4, IPADDR *ip6)
return count > 0 ? 0 : 1;
#else
hp = gethostbyname(addr);
- if (hp == NULL) return h_errno;
+ if (hp == NULL)
+ return -1;
+ //return h_errno;
ip4->family = AF_INET;
memcpy(&ip4->ip, hp->h_addr, 4);
diff --git a/src/core/servers-setup.c b/src/core/servers-setup.c
index 1412a1a7..99f9f579 100644
--- a/src/core/servers-setup.c
+++ b/src/core/servers-setup.c
@@ -371,14 +371,6 @@ static SERVER_SETUP_REC *server_setup_read(CONFIG_NODE *node)
rec = NULL;
chatnet = config_node_get_str(node, "chatnet", NULL);
- if (chatnet == NULL) /* FIXME: remove this after .98... */ {
- chatnet = config_node_get_str(node, "ircnet", NULL);
- if (chatnet != NULL) {
- iconfig_node_set_str(node, "chatnet", chatnet);
- iconfig_node_set_str(node, "ircnet", NULL);
- chatnet = config_node_get_str(node, "chatnet", NULL);
- }
- }
chatnetrec = chatnet == NULL ? NULL : chatnet_find(chatnet);
if (chatnetrec == NULL && chatnet != NULL) {