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_showfile.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_showfile.cpp')
| -rw-r--r-- | src/modules/m_showfile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_showfile.cpp b/src/modules/m_showfile.cpp index e4241105b..8273885a2 100644 --- a/src/modules/m_showfile.cpp +++ b/src/modules/m_showfile.cpp @@ -66,7 +66,7 @@ public: user->WriteRemoteNumeric(textnumeric, line); if (!endtext.empty() && endnumeric) - user->WriteRemoteNumeric(endnumeric, endtext.c_str()); + user->WriteRemoteNumeric(endnumeric, endtext); } else if (IS_LOCAL(user)) { |
