summaryrefslogtreecommitdiff
path: root/modules/chanserv/ban.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-12-07 11:29:47 -0500
committerAdam <Adam@anope.org>2016-12-07 11:29:47 -0500
commita64ede8632e1e60aba9d04d2fea9d107e339b7f3 (patch)
tree8a2e6e6cc16bee5d9beb52b27b11e4e17962f68a /modules/chanserv/ban.cpp
parent87ec095a89bbc73a4dd16858bea499f466066212 (diff)
Remove C style var args from Channel::Kick
Diffstat (limited to 'modules/chanserv/ban.cpp')
-rw-r--r--modules/chanserv/ban.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/chanserv/ban.cpp b/modules/chanserv/ban.cpp
index 44e2752a5..2b73df8fb 100644
--- a/modules/chanserv/ban.cpp
+++ b/modules/chanserv/ban.cpp
@@ -173,11 +173,11 @@ class CommandCSBan : public Command
if (ci->IsSignKick() || (ci->IsSignKickLevel() && !source.AccessFor(ci).HasPriv("SIGNKICK")))
{
signkickformat = signkickformat.replace_all_cs("%m", reason);
- c->Kick(ci->WhoSends(), u2, "%s", signkickformat.c_str());
+ c->Kick(ci->WhoSends(), u2, signkickformat);
}
else
{
- c->Kick(ci->WhoSends(), u2, "%s", reason.c_str());
+ c->Kick(ci->WhoSends(), u2, reason);
}
}
}
@@ -230,11 +230,11 @@ class CommandCSBan : public Command
{
reason += " (Matches " + mask + ")";
signkickformat = signkickformat.replace_all_cs("%m", reason);
- c->Kick(ci->WhoSends(), uc->user, "%s", signkickformat.c_str());
+ c->Kick(ci->WhoSends(), uc->user, signkickformat);
}
else
{
- c->Kick(ci->WhoSends(), uc->user, "%s (Matches %s)", reason.c_str(), mask.c_str());
+ c->Kick(ci->WhoSends(), uc->user, "{0} (Matches {1})", reason, mask);
}
}
}