mirror of
https://github.com/anope/anope.git
synced 2026-06-30 16:46:38 +02:00
Added fantasycharacter directive to botserv block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1460 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -572,4 +572,11 @@ botserv
|
||||
* If set, BotServ will use case sensitive checking for badwords. This directive is optional.
|
||||
*/
|
||||
#casesensitive = yes
|
||||
|
||||
/*
|
||||
* Defines the prefix for fantasy commands in channels. This character will have to be prepended
|
||||
* to all fantasy commands. If you choose "!", for example, fantasy commands will be "!kick",
|
||||
* "!op", etc. This directive is optional, if left out, the default fantasy character is "!".
|
||||
*/
|
||||
#fantasycharacter = "!"
|
||||
}
|
||||
|
||||
+3
-4
@@ -619,6 +619,7 @@ int ServerConfig::Read(bool bail)
|
||||
{"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},
|
||||
{"botserv", "fantasycharacter", "!", new ValueContainerChar(&BSFantasyCharacter), 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
|
||||
@@ -1199,8 +1200,6 @@ Directive directives[] = {
|
||||
{"BadPassLimit", {{PARAM_POSINT, PARAM_RELOAD, &BadPassLimit}}},
|
||||
{"BadPassTimeout", {{PARAM_TIME, PARAM_RELOAD, &BadPassTimeout}}},
|
||||
{"BotCoreModules", {{PARAM_STRING, PARAM_RELOAD, &BotCoreModules}}},
|
||||
{"BSFantasyCharacter",
|
||||
{{PARAM_STRING, PARAM_RELOAD, &BSFantasyCharacter}}},
|
||||
{"HostServDB", {{PARAM_STRING, PARAM_RELOAD, &HostDBName}}},
|
||||
{"HostServName", {{PARAM_STRING, 0, &s_HostServ},
|
||||
{PARAM_STRING, 0, &desc_HostServ}}},
|
||||
@@ -1894,9 +1893,9 @@ int read_config(int reload)
|
||||
}
|
||||
|
||||
if (s_BotServ) {
|
||||
if (!BSFantasyCharacter)
|
||||
if (!*BSFantasyCharacter)
|
||||
BSFantasyCharacter = sstrdup("!");
|
||||
if (BSFantasyCharacter && (strlen(BSFantasyCharacter) > 1)) {
|
||||
if (*BSFantasyCharacter && (strlen(BSFantasyCharacter) > 1)) {
|
||||
printf
|
||||
("*** BSFantasyCharacter is more than 1 character long. Only the first\n"
|
||||
"*** character ('%c') will be used. The others will be ignored.\n",
|
||||
|
||||
Reference in New Issue
Block a user