aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_shun.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_shun.cpp')
-rw-r--r--src/modules/m_shun.cpp4
1 files changed, 2 insertions, 2 deletions
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);
}