From 77802d96ca043ba567ae9b32409862e85dff8e5f Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 8 Apr 2021 20:00:46 +0100 Subject: Use string_view in IsCTCP. --- src/modules/m_anticaps.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_anticaps.cpp') diff --git a/src/modules/m_anticaps.cpp b/src/modules/m_anticaps.cpp index 078784482..57c144d37 100644 --- a/src/modules/m_anticaps.cpp +++ b/src/modules/m_anticaps.cpp @@ -218,8 +218,8 @@ class ModuleAntiCaps : public Module // If the message is a CTCP then we skip it unless it is // an ACTION in which case we just check against the body. - std::string ctcpname; - std::string msgbody(details.text); + std::string_view ctcpname; + std::string_view msgbody(details.text); if (details.IsCTCP(ctcpname, msgbody)) { // If the CTCP is not an action then skip it. -- cgit v1.3.1-10-gc9f91