aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_disable.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-05-31 16:46:48 +0100
committerGravatar Sadie Powell2023-05-31 16:46:48 +0100
commit0498e9ad207f9c0f93ab6f974586d8148fd9c8eb (patch)
tree99757d737b21e35fc6f14e23f9cd9ec120f92e97 /src/modules/m_disable.cpp
parentConvert DelLine from const char* to const std::string&. (diff)
Fix calling c_str() for parameters that can take a std::string.
Diffstat (limited to 'src/modules/m_disable.cpp')
-rw-r--r--src/modules/m_disable.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/m_disable.cpp b/src/modules/m_disable.cpp
index c4d58d74d..d906ee39b 100644
--- a/src/modules/m_disable.cpp
+++ b/src/modules/m_disable.cpp
@@ -178,9 +178,8 @@ public:
// The user has tried to change a disabled mode!
const char* what = change.mh->GetModeType() == MODETYPE_CHANNEL ? "channel" : "user";
- WriteLog("{} was blocked from {}setting the disabled {} mode {} ({})",
- user->GetRealMask().c_str(), change.adding ? "" : "un",
- what, change.mh->GetModeChar(), change.mh->name.c_str());
+ WriteLog("{} was blocked from {}setting the disabled {} mode {} ({})", user->GetRealMask(),
+ change.adding ? "" : "un", what, change.mh->GetModeChar(), change.mh->name);
if (fakenonexistent)
{