From e23ee3fde17a6bb17a9e56c7105f4bbceb36391f Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 18 Jan 2022 03:30:22 +0000 Subject: Rewrite logging calls to use the new APIs. --- src/modules/m_disable.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_disable.cpp') diff --git a/src/modules/m_disable.cpp b/src/modules/m_disable.cpp index 1e77a609b..774ecb278 100644 --- a/src/modules/m_disable.cpp +++ b/src/modules/m_disable.cpp @@ -58,7 +58,7 @@ private: chr, field.c_str(), tag->source.str().c_str())); // Disable the mode. - ServerInstance->Logs.Log(MODNAME, LOG_DEBUG, "The %c (%s) %s mode has been disabled", + ServerInstance->Logs.Debug(MODNAME, "The %c (%s) %s mode has been disabled", mh->GetModeChar(), mh->name.c_str(), type == MODETYPE_CHANNEL ? "channel" : "user"); status.set(ModeParser::GetModeIndex(chr)); } @@ -72,7 +72,7 @@ private: if (notifyopers) ServerInstance->SNO.WriteToSnoMask('a', buffer); else - ServerInstance->Logs.Log(MODNAME, LOG_DEFAULT, buffer); + ServerInstance->Logs.Normal(MODNAME, buffer); } public: @@ -101,7 +101,7 @@ public: continue; // Disable the command. - ServerInstance->Logs.Log(MODNAME, LOG_DEBUG, "The %s command has been disabled", handler->name.c_str()); + ServerInstance->Logs.Debug(MODNAME, "The %s command has been disabled", handler->name.c_str()); newcommands.push_back(handler->name); } -- cgit v1.3.1-10-gc9f91