diff options
-rw-r--r-- | data/example_new.conf | 51 | ||||
-rw-r--r-- | src/config.c | 2 |
2 files changed, 49 insertions, 4 deletions
diff --git a/data/example_new.conf b/data/example_new.conf index a3e9d6a60..984f2d644 100644 --- a/data/example_new.conf +++ b/data/example_new.conf @@ -72,6 +72,51 @@ * program. */ -coremodules { - ircd = "inspircd11"; -}; + +/* + * [REQUIRED] IRCd Config + * + * This section is used to set up Anope to connect to your IRCd. + */ +uplink +{ + /* + * This directive instructs Anope which IRCd Protocol to speak when connecting. + * You MUST modify this to match the IRCd you run. + * + * Supported: + * - inspircd11 + * - ratbox + * - bahamut + * - charybdis + * - unreal32 + */ + type = "inspircd11" + + /* + * The IP or hostname of the IRC server you wish to connect Services to. + * Usually, you will want to connect Services over 127.0.0.1 (aka localhost). + * + * NOTE: On some shell providers, this will not be an option. + */ + host = "localhost" + + /* + * The port to connect to. + * The IRCd *MUST* be configured to listen on this port, and to accept + * server connections. + * + * Refer to your IRCd documentation for how this is to be done. + */ + port = 6667 + + /* + * The password to send to the IRC server for authentication. + * This must match the link block on your IRCd. + * + * Refer to your IRCd documentation for more information on link blocks. + */ + password = "mypassword" +} + + diff --git a/src/config.c b/src/config.c index 6568b2d2c..bf9ac78f5 100644 --- a/src/config.c +++ b/src/config.c @@ -497,7 +497,7 @@ int ServerConfig::Read(bool bail) static const char *Once[] = {NULL}; // These tags can occur ONCE or not at all InitialConfig Values[] = { - {"coremodules", "ircd", "", new ValueContainerChar(IRCDModule), DT_CHARPTR, ValidateNotEmpty}, + {"uplink", "type", "", new ValueContainerChar(IRCDModule), DT_CHARPTR, ValidateNotEmpty}, {NULL, NULL, NULL, NULL, DT_NOTHING, NoValidation} }; /* These tags can occur multiple times, and therefore they have special code to read them |