diff options
author | Adam <Adam@anope.org> | 2011-02-12 16:17:17 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-02-12 16:17:17 -0500 |
commit | 1372dc19537ce270f1f02979101f9b8678b5ff28 (patch) | |
tree | d56f688ec113293a2e40c78d615558f1163dad7b /src/logger.cpp | |
parent | 9ef7352e69bc092bba77a085dfa0f91a5793e038 (diff) |
Removed the Wallop config options and replaced them with the new log system
Diffstat (limited to 'src/logger.cpp')
-rw-r--r-- | src/logger.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/logger.cpp b/src/logger.cpp index 1328e4f57..42bac03cb 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -265,7 +265,9 @@ std::list<Anope::string> &LogInfo::GetList(LogType type) switch (type) { case LOG_ADMIN: + return this->Admin; case LOG_OVERRIDE: + return this->Override; case LOG_COMMAND: return this->Commands; case LOG_SERVER: @@ -348,6 +350,13 @@ void LogInfo::ProcessMessage(const Log *l) ircdproto->SendPrivmsg(l->bi, c->name, "%s", l->buf.str().c_str()); } } + else if (target == "globops") + { + if (UplinkSock && l->bi && l->Type <= LOG_NORMAL && Me && Me->IsSynced()) + { + ircdproto->SendGlobops(l->bi, "%s", l->buf.str().c_str()); + } + } else { LogFile *log = NULL; |