diff options
| author | dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b <dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-09-29 20:19:18 +0000 |
|---|---|---|
| committer | dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b <dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-09-29 20:19:18 +0000 |
| commit | 676b8eaf7fcec02ad2583dc0bcc531942b65068e (patch) | |
| tree | d8405dc99f4b8a50935452374b7afc983dfde641 /src/config.c | |
| parent | b6f83ea4db94339449c05be946477b729e9b991a (diff) | |
BUILD : 1.7.5 (362) BUGS : 17 143 147 166 172 173 NOTES : Applied patch 927 provided by Trystan.
git-svn-id: svn://svn.anope.org/anope/trunk@362 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@233 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/config.c')
| -rw-r--r-- | src/config.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/config.c b/src/config.c index 8bbbd077d..31dc59fa7 100644 --- a/src/config.c +++ b/src/config.c @@ -117,6 +117,8 @@ int DumpCore; int LogUsers; int NickRegDelay; int UseSVSHOLD; +int UseTokens; +int UseSVS2MODE; int UseMail; char *SendMailPath; @@ -622,6 +624,8 @@ Directive directives[] = { {"UserKey2", {{PARAM_POSINT, PARAM_RELOAD, &UserKey2}}}, {"UserKey3", {{PARAM_POSINT, PARAM_RELOAD, &UserKey3}}}, {"UseSVSHOLD", {{PARAM_SET, PARAM_RELOAD, &UseSVSHOLD}}}, + {"UseSVS2MODE", {{PARAM_SET, PARAM_RELOAD, &UseSVS2MODE}}}, + {"UseTokens", {{PARAM_SET, 0, &UseTokens}}}, {"WallAkillExpire", {{PARAM_SET, PARAM_RELOAD, &WallAkillExpire}}}, {"WallBadOS", {{PARAM_SET, PARAM_RELOAD, &WallBadOS}}}, {"WallDrop", {{PARAM_SET, PARAM_RELOAD, &WallDrop}}}, @@ -941,7 +945,7 @@ int read_config(int reload) CHECK(RemoteServer2); } if (!reload) { - if (LocalHost) { + if (LocalHost && RemoteServer) { if ((!stricmp(LocalHost, RemoteServer)) && LocalPort == RemotePort) { printf @@ -1319,6 +1323,13 @@ int read_config(int reload) CHECK(DefconMessage); } + if (UseTokens) { + if (!ircd->token) { + alog("Anope does not support TOKENS for this ircd setting unsetting UseToken"); + UseTokens = 0; + } + } + /** * If they try to enable any email registration option, * make sure they have everything else they need too... |
