summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-04 00:27:48 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-04 00:27:48 +0000
commitaa3bfb86e01bc245c758db65263ece42cf973472 (patch)
tree02a16760553ad83463cd384cd2b2398e848271d9
parent59671baf4c878547cca7b9ad9323308d5629aaa5 (diff)
(Unworking) stuff for conversion
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1415 5417fbe8-f217-4b02-8779-1006273d7864
-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