1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 17:16:39 +02:00

Changed the log:normal config directive to a list like the other log values, and fixed a potential crash from rehashing while sending mail

This commit is contained in:
Adam
2010-10-21 23:20:48 -04:00
parent 4f317a2421
commit 791c2b89a5
11 changed files with 31 additions and 26 deletions
+4 -3
View File
@@ -205,7 +205,7 @@ Log::~Log()
}
}
LogInfo::LogInfo(int logage, bool inhabit, bool normal, bool rawio, bool ldebug) : LogAge(logage), Inhabit(inhabit), Normal(normal), RawIO(rawio), Debug(ldebug)
LogInfo::LogInfo(int logage, bool inhabit, bool rawio, bool ldebug) : LogAge(logage), Inhabit(inhabit), RawIO(rawio), Debug(ldebug)
{
}
@@ -272,6 +272,8 @@ std::list<Anope::string> &LogInfo::GetList(LogType type)
return this->Channels;
case LOG_USER:
return this->Users;
case LOG_NORMAL:
return this->Normal;
default:
return empty;
}
@@ -287,9 +289,8 @@ bool LogInfo::HasType(LogType type)
case LOG_SERVER:
case LOG_CHANNEL:
case LOG_USER:
return !this->GetList(type).empty();
case LOG_NORMAL:
return this->Normal;
return !this->GetList(type).empty();
case LOG_TERMINAL:
return true;
case LOG_RAWIO: