From ef594e2f9e2be8d1b3f8e9be64efad8afee2a909 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 4 Sep 2022 01:26:58 +0100 Subject: Fix unnecessarily using c_str in parameters that take a std::string. --- src/modules/m_shun.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_shun.cpp') diff --git a/src/modules/m_shun.cpp b/src/modules/m_shun.cpp index 8268f632c..a09ebd44d 100644 --- a/src/modules/m_shun.cpp +++ b/src/modules/m_shun.cpp @@ -114,7 +114,7 @@ class CommandShun : public Command expr = parameters[1]; } - Shun* r = new Shun(ServerInstance->Time(), duration, user->nick.c_str(), expr.c_str(), target.c_str()); + Shun* r = new Shun(ServerInstance->Time(), duration, user->nick, expr, target); if (ServerInstance->XLines->AddLine(r, user)) { if (!duration) -- cgit v1.3.1-10-gc9f91