aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_dccallow.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-04-09 00:14:46 +0100
committerGravatar Sadie Powell2021-04-09 00:15:21 +0100
commitddd91d0f0dec73922c5311b2388482ecc363ce52 (patch)
treeda1aaa763a1dffe97172db3042c8beb9df4d530d /src/modules/m_dccallow.cpp
parentUse 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.cpp2
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"))
{