aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_shun.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-05-30 20:37:27 +0100
committerGravatar Sadie Powell2023-05-30 20:37:48 +0100
commitc4858e2a110b016f19bfb6f658620ed6deb28eee (patch)
tree17e633dc86ded8b70698f647f45e6a7092701a02 /src/modules/m_shun.cpp
parentMerge branch 'insp3' into master. (diff)
downloadinspircd++-c4858e2a110b016f19bfb6f658620ed6deb28eee.tar.gz
inspircd++-c4858e2a110b016f19bfb6f658620ed6deb28eee.tar.bz2
inspircd++-c4858e2a110b016f19bfb6f658620ed6deb28eee.zip
Convert DelLine from const char* to const std::string&.
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);
}