summaryrefslogtreecommitdiff
path: root/src/modules/m_disable.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-04-02 11:36:25 +0100
committerSadie Powell <sadie@witchery.services>2020-04-02 11:36:25 +0100
commite75b2f92b56c7ccbef4df05462e332f859b983f1 (patch)
treedf8e346e5dc2deeaee0076cde5b589ef1bedd299 /src/modules/m_disable.cpp
parent339826812bf8d0f8c979a66e971454d2eaf97cd7 (diff)
Fix the log message in the disable module.
Modes are set and unset not executed.
Diffstat (limited to 'src/modules/m_disable.cpp')
-rw-r--r--src/modules/m_disable.cpp5
1 files 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)
{