mirror of
https://github.com/anope/anope.git
synced 2026-07-01 13:06:38 +02:00
Added smartjoin directive to botserv block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1457 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -551,4 +551,13 @@ botserv
|
||||
* resources will be slightly affected.
|
||||
*/
|
||||
keepdata = 10m
|
||||
|
||||
/*
|
||||
* The bots are currently not affected by any modes or bans when they try to join a channel.
|
||||
* But some people may want to make it act like a real bot, that is, for example, remove all
|
||||
* the bans affecting the bot before joining the channel, remove a ban that affects the bot
|
||||
* set by an user when it is in the channel, and so on. Since it consumes a bit more CPU
|
||||
* time, you should not enable this on larger networks. This directive is optional.
|
||||
*/
|
||||
#smartjoin = yes
|
||||
}
|
||||
|
||||
+1
-1
@@ -363,7 +363,7 @@ E int BSDefFlags;
|
||||
E time_t BSKeepData;
|
||||
E int BSMinUsers;
|
||||
E int BSBadWordsMax;
|
||||
E int BSSmartJoin;
|
||||
E bool BSSmartJoin;
|
||||
E int BSGentleBWReason;
|
||||
E int BSCaseSensitive;
|
||||
E char *BSFantasyCharacter;
|
||||
|
||||
+2
-2
@@ -166,7 +166,7 @@ int BSDefFlags;
|
||||
time_t BSKeepData;
|
||||
int BSMinUsers;
|
||||
int BSBadWordsMax;
|
||||
int BSSmartJoin;
|
||||
bool BSSmartJoin;
|
||||
int BSGentleBWReason;
|
||||
int BSCaseSensitive;
|
||||
char *BSFantasyCharacter;
|
||||
@@ -616,6 +616,7 @@ int ServerConfig::Read(bool bail)
|
||||
{"botserv", "minusers", "0", new ValueContainerInt(&BSMinUsers), DT_INTEGER, ValidateBotServ},
|
||||
{"botserv", "badwordsmax", "0", new ValueContainerInt(&BSBadWordsMax), DT_INTEGER, ValidateBotServ},
|
||||
{"botserv", "keepdata", "0", new ValueContainerTime(&BSKeepData), DT_TIME, ValidateBotServ},
|
||||
{"botserv", "smartjoin", "no", new ValueContainerBool(&BSSmartJoin), 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
|
||||
@@ -1200,7 +1201,6 @@ Directive directives[] = {
|
||||
{"BSFantasyCharacter",
|
||||
{{PARAM_STRING, PARAM_RELOAD, &BSFantasyCharacter}}},
|
||||
{"BSGentleBWReason", {{PARAM_SET, PARAM_RELOAD, &BSGentleBWReason}}},
|
||||
{"BSSmartJoin", {{PARAM_SET, PARAM_RELOAD, &BSSmartJoin}}},
|
||||
{"HostServDB", {{PARAM_STRING, PARAM_RELOAD, &HostDBName}}},
|
||||
{"HostServName", {{PARAM_STRING, 0, &s_HostServ},
|
||||
{PARAM_STRING, 0, &desc_HostServ}}},
|
||||
|
||||
Reference in New Issue
Block a user