summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-09 23:02:06 +0000
committerNaram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-09 23:02:06 +0000
commitb5637777ec24040560762a29988f0c2721824618 (patch)
treebd0d0e52ba048f1c819eded747f3a1385b4ce1c7
parentc4f6e8af35f6cd515ec5b3485f62f73ddcce7bc5 (diff)
Added logchannel directive to networkinfo block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1617 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--data/example_new.conf9
-rw-r--r--src/config.c2
2 files changed, 10 insertions, 1 deletions
diff --git a/data/example_new.conf b/data/example_new.conf
index d5c8d8fb8..80a3c3601 100644
--- a/data/example_new.conf
+++ b/data/example_new.conf
@@ -179,6 +179,15 @@ networkinfo {
* will automatically receive the +h user mode. This directive is optional.
*/
helpchannel = "#help"
+
+ /*
+ * If set, Services will output log messages to the given channel. This
+ * directive is optional.
+ *
+ * IMPORTANT: This can be a security risk, so make certain this channel is
+ * sufficiently protected from normal access.
+ */
+ #logchannel = "#services"
}
/*
diff --git a/src/config.c b/src/config.c
index 42542f941..0095c5137 100644
--- a/src/config.c
+++ b/src/config.c
@@ -605,6 +605,7 @@ int ServerConfig::Read(bool bail)
{"serverinfo", "pid", "services.pid", new ValueContainerChar(&PIDFilename), DT_CHARPTR | DT_NORELOAD, ValidateNotEmpty},
{"serverinfo", "motd", "services.motd", new ValueContainerChar(&MOTDFilename), DT_CHARPTR, ValidateNotEmpty},
{"networkinfo", "helpchannel", "", new ValueContainerChar(&HelpChannel), DT_CHARPTR, NoValidation},
+ {"networkinfo", "logchannel", "", new ValueContainerChar(&LogChannel), DT_CHARPTR, NoValidation},
{"nickserv", "nick", "NickServ", new ValueContainerChar(&s_NickServ), DT_CHARPTR | DT_NORELOAD, ValidateNotEmpty},
{"nickserv", "description", "Nickname Registration Service", new ValueContainerChar(&desc_NickServ), DT_CHARPTR | DT_NORELOAD, ValidateNotEmpty},
{"nickserv", "database", "nick.db", new ValueContainerChar(&NickDBName), DT_CHARPTR, ValidateNotEmpty},
@@ -1303,7 +1304,6 @@ Directive directives[] = {
{"EncModule", {{PARAM_STRING, 0, &EncModule}}},
{"ExpireTimeout", {{PARAM_TIME, PARAM_RELOAD, &ExpireTimeout}}},
{"ForceForbidReason", {{PARAM_SET, PARAM_RELOAD, &ForceForbidReason}}},
- {"LogChannel", {{PARAM_STRING, PARAM_RELOAD, &LogChannel}}},
{"LogBot", {{PARAM_SET, PARAM_RELOAD, &LogBot}}},
{"KeepBackups", {{PARAM_INT, PARAM_RELOAD, &KeepBackups}}},
{"KeepLogs", {{PARAM_INT, PARAM_RELOAD, &KeepLogs}}},