From c4858e2a110b016f19bfb6f658620ed6deb28eee Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 30 May 2023 20:37:27 +0100 Subject: Convert DelLine from const char* to const std::string&. --- src/modules/m_shun.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_shun.cpp') diff --git a/src/modules/m_shun.cpp b/src/modules/m_shun.cpp index fc2c848b5..60c18ef32 100644 --- a/src/modules/m_shun.cpp +++ b/src/modules/m_shun.cpp @@ -83,11 +83,11 @@ public: { std::string reason; - if (ServerInstance->XLines->DelLine(parameters[0].c_str(), "SHUN", reason, user)) + if (ServerInstance->XLines->DelLine(parameters[0], "SHUN", reason, user)) { ServerInstance->SNO.WriteToSnoMask('x', "{} removed SHUN on {}: {}", user->nick, parameters[0], reason); } - else if (ServerInstance->XLines->DelLine(target.c_str(), "SHUN", reason, user)) + else if (ServerInstance->XLines->DelLine(target, "SHUN", reason, user)) { ServerInstance->SNO.WriteToSnoMask('x', "{} removed SHUN on {}: {}", user->nick, target, reason); } -- cgit v1.3.1-10-gc9f91