diff options
author | Adam <Adam@anope.org> | 2010-10-21 23:20:48 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-10-21 23:20:48 -0400 |
commit | 791c2b89a5b09d3e3e3785669b29438ffec26295 (patch) | |
tree | 60a4647572e80d5f037fe2d9e49338a34cc0d6ea /src/logger.cpp | |
parent | 4f317a242104b623d2e5257bc672fd56c0240a0e (diff) |
Changed the log:normal config directive to a list like the other log values, and fixed a potential crash from rehashing while sending mail
Diffstat (limited to 'src/logger.cpp')
-rw-r--r-- | src/logger.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/logger.cpp b/src/logger.cpp index 58183c8b0..e2833b2c8 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -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: |