diff options
| author | 2023-01-22 22:49:15 +0000 | |
|---|---|---|
| committer | 2023-01-22 22:52:30 +0000 | |
| commit | d4efd2677f9aec2ddcab267780f22a11a53af41f (patch) | |
| tree | e3180753388b9cd49d1c013d8897b659c671f3f4 /src/logging.cpp | |
| parent | Replace ModeAction with bool. (diff) | |
| download | inspircd++-d4efd2677f9aec2ddcab267780f22a11a53af41f.tar.gz inspircd++-d4efd2677f9aec2ddcab267780f22a11a53af41f.tar.bz2 inspircd++-d4efd2677f9aec2ddcab267780f22a11a53af41f.zip | |
Move NotifyRawIO to the Log namespace.
Diffstat (limited to 'src/logging.cpp')
| -rw-r--r-- | src/logging.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/logging.cpp b/src/logging.cpp index 37cb0c815..13d6d3025 100644 --- a/src/logging.cpp +++ b/src/logging.cpp @@ -44,6 +44,12 @@ const char* Log::LevelToString(Log::Level level) return "unknown"; } +void Log::NotifyRawIO(LocalUser* user, MessageType type) +{ + ClientProtocol::Messages::Privmsg msg(ServerInstance->FakeClient, user, "*** Raw I/O logging is enabled on this server. All messages, passwords, and commands are being recorded.", type); + user->Send(ServerInstance->GetRFCEvents().privmsg, msg); +} + Log::FileMethod::FileMethod(const std::string& n, FILE* fh, unsigned long fl, bool ac) : Timer(15*60, true) , autoclose(ac) @@ -179,12 +185,6 @@ void Log::Manager::EnableDebugMode() ServerInstance->Config->RawLog = true; } -void Log::Manager::NotifyRawIO(LocalUser* user, MessageType type) -{ - ClientProtocol::Messages::Privmsg msg(ServerInstance->FakeClient, user, "*** Raw I/O logging is enabled on this server. All messages, passwords, and commands are being recorded.", type); - user->Send(ServerInstance->GetRFCEvents().privmsg, msg); -} - void Log::Manager::OpenLogs(bool requiremethods) { // If the server is started in debug mode we don't write logs. |
