aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_shun.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-09-04 01:26:58 +0100
committerGravatar Sadie Powell2022-09-04 01:26:58 +0100
commitef594e2f9e2be8d1b3f8e9be64efad8afee2a909 (patch)
treeafec34edcb97f47797cd117e1baeb4e1e9b82344 /src/modules/m_shun.cpp
parentEncourage people to submit patches for weird platforms. (diff)
Fix unnecessarily using c_str in parameters that take a std::string.
Diffstat (limited to 'src/modules/m_shun.cpp')
-rw-r--r--src/modules/m_shun.cpp2
1 files changed, 1 insertions, 1 deletions
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)