diff options
| author | 2023-05-31 16:46:48 +0100 | |
|---|---|---|
| committer | 2023-05-31 16:46:48 +0100 | |
| commit | 0498e9ad207f9c0f93ab6f974586d8148fd9c8eb (patch) | |
| tree | 99757d737b21e35fc6f14e23f9cd9ec120f92e97 /src/modules/m_disable.cpp | |
| parent | Convert 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.cpp | 5 |
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) { |
