diff options
author | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-09 23:08:00 +0000 |
---|---|---|
committer | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-09 23:08:00 +0000 |
commit | 636548571e06e8dad19bc6243ad29c5c27c1a765 (patch) | |
tree | b5a4199447cbdeeacd38814ed864ffc0117d59f8 | |
parent | b5637777ec24040560762a29988f0c2721824618 (diff) |
Added logbot directive to networkinfo block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1618 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | data/example_new.conf | 8 | ||||
-rw-r--r-- | include/extern.h | 2 | ||||
-rw-r--r-- | src/config.c | 4 |
3 files changed, 11 insertions, 3 deletions
diff --git a/data/example_new.conf b/data/example_new.conf index 80a3c3601..9121223b4 100644 --- a/data/example_new.conf +++ b/data/example_new.conf @@ -188,6 +188,14 @@ networkinfo { * sufficiently protected from normal access. */ #logchannel = "#services" + + /* + * If set, Services will output all BotServ chatter to the defined logchannel + * above. It shows all uses of BotServ ACT and SAY commands. Note that there + * is no logging to the log file. Only works if logchannel is also defined. + * This directive is optional. + */ + #logbot = yes } /* diff --git a/include/extern.h b/include/extern.h index 2467bff60..db4936b4d 100644 --- a/include/extern.h +++ b/include/extern.h @@ -378,7 +378,7 @@ E char **ServicesRoots; E int RootNumber; E bool LogMaxUsers; E bool SuperAdmin; -E int LogBot; +E bool LogBot; E time_t AutokillExpiry; E time_t ChankillExpiry; E time_t SGLineExpiry; diff --git a/src/config.c b/src/config.c index 0095c5137..d491dbef5 100644 --- a/src/config.c +++ b/src/config.c @@ -178,7 +178,7 @@ static char *ServicesRoot; char **ServicesRoots; int RootNumber; bool SuperAdmin; -int LogBot; +bool LogBot; bool LogMaxUsers; bool DisableRaw; time_t AutokillExpiry; @@ -606,6 +606,7 @@ int ServerConfig::Read(bool bail) {"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}, + {"networkinfo", "logbot", "no", new ValueContainerBool(&LogBot), DT_BOOLEAN, 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}, @@ -1304,7 +1305,6 @@ Directive directives[] = { {"EncModule", {{PARAM_STRING, 0, &EncModule}}}, {"ExpireTimeout", {{PARAM_TIME, PARAM_RELOAD, &ExpireTimeout}}}, {"ForceForbidReason", {{PARAM_SET, PARAM_RELOAD, &ForceForbidReason}}}, - {"LogBot", {{PARAM_SET, PARAM_RELOAD, &LogBot}}}, {"KeepBackups", {{PARAM_INT, PARAM_RELOAD, &KeepBackups}}}, {"KeepLogs", {{PARAM_INT, PARAM_RELOAD, &KeepLogs}}}, {"LocalAddress", {{PARAM_STRING, 0, &LocalHost}, |