aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_disable.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-01-18 03:30:22 +0000
committerGravatar Sadie Powell2022-05-01 22:07:14 +0100
commite23ee3fde17a6bb17a9e56c7105f4bbceb36391f (patch)
treeb5117aa2cc0fe2bee18df3a5dabf0ecc49dbd30e /src/modules/m_disable.cpp
parentRewrite the entire logging system. (diff)
Rewrite logging calls to use the new APIs.
Diffstat (limited to 'src/modules/m_disable.cpp')
-rw-r--r--src/modules/m_disable.cpp6
1 files changed, 3 insertions, 3 deletions
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);
}