summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-19 20:25:01 +0000
committerNaram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-19 20:25:01 +0000
commit6fda7a08935b9d99da9b0fd7cc1a575ea40fd1bb (patch)
tree9209b2cb01b1d6396bc0bd4764db92ada9a7a599
parenta159b3b42fbf08964ad47f063f14d3996ce61a6c (diff)
Added casesensitive directive to botserv block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1459 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--data/example_new.conf8
-rw-r--r--include/extern.h2
-rw-r--r--src/config.c4
3 files changed, 10 insertions, 4 deletions
diff --git a/data/example_new.conf b/data/example_new.conf
index f61515b46..7b35beb9b 100644
--- a/data/example_new.conf
+++ b/data/example_new.conf
@@ -563,7 +563,13 @@ botserv
/*
* If set, the bots will use a kick reason that does not retake the word when it is kicking.
- * This is especially useful if you have young people on your network.
+ * This is especially useful if you have young people on your network. This directive is
+ * optional.
*/
gentlebadwordreason = yes
+
+ /*
+ * If set, BotServ will use case sensitive checking for badwords. This directive is optional.
+ */
+ #casesensitive = yes
}
diff --git a/include/extern.h b/include/extern.h
index 131eefe59..2d2c7360d 100644
--- a/include/extern.h
+++ b/include/extern.h
@@ -365,7 +365,7 @@ E int BSMinUsers;
E int BSBadWordsMax;
E bool BSSmartJoin;
E bool BSGentleBWReason;
-E int BSCaseSensitive;
+E bool BSCaseSensitive;
E char *BSFantasyCharacter;
E int HideStatsO;
diff --git a/src/config.c b/src/config.c
index 8acbe7486..718c3eeab 100644
--- a/src/config.c
+++ b/src/config.c
@@ -168,7 +168,7 @@ int BSMinUsers;
int BSBadWordsMax;
bool BSSmartJoin;
bool BSGentleBWReason;
-int BSCaseSensitive;
+bool BSCaseSensitive;
char *BSFantasyCharacter;
int HideStatsO;
@@ -618,6 +618,7 @@ int ServerConfig::Read(bool bail)
{"botserv", "keepdata", "0", new ValueContainerTime(&BSKeepData), DT_TIME, ValidateBotServ},
{"botserv", "smartjoin", "no", new ValueContainerBool(&BSSmartJoin), DT_BOOLEAN, NoValidation},
{"botserv", "gentlebadwordreason", "no", new ValueContainerBool(&BSGentleBWReason), DT_BOOLEAN, NoValidation},
+ {"botserv", "casesensitive", "no", new ValueContainerBool(&BSCaseSensitive), DT_BOOLEAN, NoValidation},
{NULL, NULL, NULL, NULL, DT_NOTHING, NoValidation}
};
/* These tags can occur multiple times, and therefore they have special code to read them
@@ -1198,7 +1199,6 @@ Directive directives[] = {
{"BadPassLimit", {{PARAM_POSINT, PARAM_RELOAD, &BadPassLimit}}},
{"BadPassTimeout", {{PARAM_TIME, PARAM_RELOAD, &BadPassTimeout}}},
{"BotCoreModules", {{PARAM_STRING, PARAM_RELOAD, &BotCoreModules}}},
- {"BSCaseSensitive", {{PARAM_SET, PARAM_RELOAD, &BSCaseSensitive}}},
{"BSFantasyCharacter",
{{PARAM_STRING, PARAM_RELOAD, &BSFantasyCharacter}}},
{"HostServDB", {{PARAM_STRING, PARAM_RELOAD, &HostDBName}}},