summaryrefslogtreecommitdiff
path: root/src/core/servers-setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/servers-setup.c')
-rw-r--r--src/core/servers-setup.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/servers-setup.c b/src/core/servers-setup.c
index 59883694..7545762d 100644
--- a/src/core/servers-setup.c
+++ b/src/core/servers-setup.c
@@ -314,6 +314,13 @@ 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);
+ }
+ }
signal_emit("server setup read", 3, &rec, node,
chatnet == NULL ? NULL : chatnet_find(chatnet));
if (rec == NULL) {