diff options
author | Adam <Adam@anope.org> | 2010-08-28 00:14:06 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-08-28 00:14:06 -0400 |
commit | 10d901084f8e395646adb63c9c54affb159bc634 (patch) | |
tree | 606a13304b8221d338e634b89ef0f8cabd194e7e /src/logger.cpp | |
parent | 334e5a4ef9067e1b0a87abd50a4aac9a711ea5ef (diff) |
Do not log RAWIO messages to services log channels, added a config option on whether or not to join bots to the log channels, and fixed two log messages in ns_identify
Diffstat (limited to 'src/logger.cpp')
-rw-r--r-- | src/logger.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/logger.cpp b/src/logger.cpp index d2621a999..92b87279d 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -17,6 +17,9 @@ void InitLogChannels(ServerConfig *config) { LogInfo *l = config->LogInfos[i]; + if (!l->Inhabit) + continue; + for (std::list<Anope::string>::const_iterator sit = l->Targets.begin(), sit_end = l->Targets.end(); sit != sit_end; ++sit) { const Anope::string &target = *sit; @@ -195,7 +198,7 @@ Log::~Log() } } -LogInfo::LogInfo(int logage, bool normal, bool rawio, bool ldebug) : LogAge(logage), Normal(normal), RawIO(rawio), Debug(ldebug) +LogInfo::LogInfo(int logage, bool inhabit, bool normal, bool rawio, bool ldebug) : LogAge(logage), Inhabit(inhabit), Normal(normal), RawIO(rawio), Debug(ldebug) { } @@ -327,7 +330,7 @@ void LogInfo::ProcessMessage(const Log *l) if (target[0] == '#') { - if (UplinkSock && !debug && Me && Me->IsSynced()) + if (UplinkSock && l->Type <= LOG_NORMAL && Me && Me->IsSynced()) { Channel *c = findchan(target); if (!c || !l->bi) |