1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 07:13:12 +02:00

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

This commit is contained in:
Adam
2010-08-28 00:14:06 -04:00
parent 334e5a4ef9
commit 10d901084f
5 changed files with 50 additions and 37 deletions
+5 -2
View File
@@ -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)