From e75b2f92b56c7ccbef4df05462e332f859b983f1 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 2 Apr 2020 11:36:25 +0100 Subject: Fix the log message in the disable module. Modes are set and unset not executed. --- src/modules/m_disable.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/m_disable.cpp b/src/modules/m_disable.cpp index f1b7872fb..7ba278149 100644 --- a/src/modules/m_disable.cpp +++ b/src/modules/m_disable.cpp @@ -163,8 +163,9 @@ class ModuleDisable : public Module // The user has tried to change a disabled mode! const char* what = mh->GetModeType() == MODETYPE_CHANNEL ? "channel" : "user"; - WriteLog("%s was blocked from executing the disabled %s mode %c (%s)", - user->GetFullRealHost().c_str(), what, mh->GetModeChar(), mh->name.c_str()); + WriteLog("%s was blocked from %ssetting the disabled %s mode %c (%s)", + user->GetFullRealHost().c_str(), adding ? "" : "un", + what, mh->GetModeChar(), mh->name.c_str()); if (fakenonexistent) { -- cgit v1.2.3