summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/example_new.conf2
-rw-r--r--src/config.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/data/example_new.conf b/data/example_new.conf
index 984f2d644..bd54496ec 100644
--- a/data/example_new.conf
+++ b/data/example_new.conf
@@ -76,7 +76,7 @@
/*
* [REQUIRED] IRCd Config
*
- * This section is used to set up Anope to connect to your IRCd.
+ * This section is used to set up Anope to connect to your IRC network.
*/
uplink
{
diff --git a/src/config.c b/src/config.c
index bf9ac78f5..2490a2c42 100644
--- a/src/config.c
+++ b/src/config.c
@@ -498,6 +498,9 @@ int ServerConfig::Read(bool bail)
// These tags can occur ONCE or not at all
InitialConfig Values[] = {
{"uplink", "type", "", new ValueContainerChar(IRCDModule), DT_CHARPTR, ValidateNotEmpty},
+ {"uplink", "host", "", new ValueContainerChar(RemoteServer), DT_CHARPTR, ValidateHostname},
+ {"uplink", "port", "", new ValueContainerInt(&RemotePort), DT_CHARPTR, ValidatePort},
+ {"uplink", "password", "", new ValueContainerChar(RemotePassword), DT_CHARPTR, ValidateNoSpaces},
{NULL, NULL, NULL, NULL, DT_NOTHING, NoValidation}
};
/* These tags can occur multiple times, and therefore they have special code to read them