diff options
| author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-11-28 23:02:07 +0000 |
|---|---|---|
| committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-11-28 23:02:07 +0000 |
| commit | a08b3ec5924c946308ac086cd3ee7d701610d3be (patch) | |
| tree | 84da442a85ffeccd6425cc7c85db9eda6e881753 /src/log.c | |
| parent | f6b823ade85160f94544d1ad1de4d8fbc42b2712 (diff) | |
Massive move of all of the Config variables out of global scope to the Config class
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2674 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/log.c')
| -rw-r--r-- | src/log.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -49,11 +49,11 @@ static void remove_log() char name[PATH_MAX]; - if (!KeepLogs) + if (!Config.KeepLogs) return; time(&t); - t -= (60 * 60 * 24 * KeepLogs); + t -= (60 * 60 * 24 * Config.KeepLogs); tm = *localtime(&t); /* removed if from here cause get_logchan is always 1 */ @@ -176,8 +176,8 @@ void alog(const char *fmt, ...) if (nofork) { fprintf(stderr, "%s %s\n", buf, str); } - if (LogChannel && LogChan && !debug && findchan(LogChannel)) { - ircdproto->SendPrivmsg(findbot(s_GlobalNoticer), LogChannel, "%s", str); + if (Config.LogChannel && LogChan && !debug && findchan(Config.LogChannel)) { + ircdproto->SendPrivmsg(findbot(Config.s_GlobalNoticer), Config.LogChannel, "%s", str); } errno = errno_save; } |
