diff options
| author | trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-10-03 03:58:43 +0000 |
|---|---|---|
| committer | trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-10-03 03:58:43 +0000 |
| commit | 04afc8548091ab4a5ee405dbe40c5ad1ab9f5d98 (patch) | |
| tree | 61d5157b8f6f1cc9bfa202dc13ab155702f652b9 /src/config.c | |
| parent | 7bc5f4a8ed453f1e6922e71a7066f02c8ffc7484 (diff) | |
BUILD : 1.7.5 (365) BUGS : 172 NOTES : - New directive NewsCount - fr.l updated - do_memocheck() globalized the time display - getmemoinfo() improved to return info about being forbidden - fixes svsnick on Unreal - anope_event_null to allow ircd devs to point events that go to no where some where - fixed SQUIT
git-svn-id: svn://svn.anope.org/anope/trunk@365 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@236 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/config.c')
| -rw-r--r-- | src/config.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c index 31dc59fa7..e13a35790 100644 --- a/src/config.c +++ b/src/config.c @@ -119,6 +119,7 @@ int NickRegDelay; int UseSVSHOLD; int UseTokens; int UseSVS2MODE; +int NewsCount; int UseMail; char *SendMailPath; @@ -510,6 +511,7 @@ Directive directives[] = { {"MSMemoReceipt", {{PARAM_POSINT, PARAM_RELOAD, &MSMemoReceipt}}}, {"NetworkDomain", {{PARAM_STRING, PARAM_RELOAD, &NetworkDomain}}}, {"NetworkName", {{PARAM_STRING, PARAM_RELOAD, &NetworkName}}}, + {"NewsCount", {{PARAM_POSINT, PARAM_RELOAD, &NewsCount}}}, {"NewsDB", {{PARAM_STRING, PARAM_RELOAD, &NewsDBName}}}, {"NickservDB", {{PARAM_STRING, PARAM_RELOAD, &NickDBName}}}, {"PreNickServDB", {{PARAM_STRING, PARAM_RELOAD, &PreNickDBName}}}, @@ -1087,6 +1089,10 @@ int read_config(int reload) } } + if (!NewsCount) { + NewsCount = 3; + } + if (reload) { if ((NSDefLanguage = langlist[NSDefLanguage]) < 0) NSDefLanguage = DEF_LANGUAGE; |
