diff options
| author | 2021-04-09 00:14:46 +0100 | |
|---|---|---|
| committer | 2021-04-09 00:15:21 +0100 | |
| commit | ddd91d0f0dec73922c5311b2388482ecc363ce52 (patch) | |
| tree | da1aaa763a1dffe97172db3042c8beb9df4d530d /src/modules/m_dccallow.cpp | |
| parent | Use string_view in IsCTCP. (diff) | |
Fix a dangling view in dccallow.
Diffstat (limited to 'src/modules/m_dccallow.cpp')
| -rw-r--r-- | src/modules/m_dccallow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp index fa3390e6f..bc5f9763a 100644 --- a/src/modules/m_dccallow.cpp +++ b/src/modules/m_dccallow.cpp @@ -442,7 +442,7 @@ class ModuleDCCAllow : public Module if (s == std::string::npos) return MOD_RES_PASSTHRU; - const std::string_view type = std::string(ctcpbody).substr(0, s); + const std::string type = std::string(ctcpbody).substr(0, s); if (irc::equals(type, "SEND")) { |
