diff options
| author | 2021-04-08 20:00:46 +0100 | |
|---|---|---|
| committer | 2021-04-08 20:00:46 +0100 | |
| commit | 77802d96ca043ba567ae9b32409862e85dff8e5f (patch) | |
| tree | 3ca506dea38f060aaef9cda3f60f4c4a51881221 /src/modules/m_anticaps.cpp | |
| parent | Take a string_view in irc::equals. (diff) | |
Use string_view in IsCTCP.
Diffstat (limited to 'src/modules/m_anticaps.cpp')
| -rw-r--r-- | src/modules/m_anticaps.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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. |
