diff options
author | Adam <Adam@anope.org> | 2014-04-20 14:35:14 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2014-04-20 14:35:14 -0400 |
commit | 26ac315192e0d8a04d50e910697ab794eedf0cc1 (patch) | |
tree | b9916f14fe35ce5c4de95c4194ca4ea0cb30812f /src/logger.cpp | |
parent | 0b6476f06ff9ce06545c421143c7d7163c750aa5 (diff) |
New event system
Diffstat (limited to 'src/logger.cpp')
-rw-r--r-- | src/logger.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/logger.cpp b/src/logger.cpp index 445e71949..1aa530f82 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -21,6 +21,7 @@ #include "servers.h" #include "uplink.h" #include "protocol.h" +#include "event.h" #ifndef _WIN32 #include <sys/time.h> @@ -129,7 +130,7 @@ Log::~Log() else if (this->type == LOG_TERMINAL) std::cout << this->BuildPrefix() << this->buf.str() << std::endl; - FOREACH_MOD(OnLog, (this)); + Event::OnLog(&Event::Log::OnLog, this); if (Config) for (unsigned i = 0; i < Config->LogInfos.size(); ++i) @@ -347,7 +348,7 @@ void LogInfo::ProcessMessage(const Log *l) const Anope::string &buffer = l->BuildPrefix() + l->buf.str(); - FOREACH_MOD(OnLogMessage, (this, l, buffer)); + Event::OnLogMessage(&Event::LogMessage::OnLogMessage, this, l, buffer); for (unsigned i = 0; i < this->targets.size(); ++i) { |