From ddd91d0f0dec73922c5311b2388482ecc363ce52 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 9 Apr 2021 00:14:46 +0100 Subject: Fix a dangling view in dccallow. --- src/modules/m_dccallow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_dccallow.cpp') 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")) { -- cgit v1.3.1-10-gc9f91