summaryrefslogtreecommitdiff
path: root/modules/chanserv/enforce.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/enforce.cpp
parent87ec095a89bbc73a4dd16858bea499f466066212 (diff)
Remove C style var args from Channel::Kick
Diffstat (limited to 'modules/chanserv/enforce.cpp')
-rw-r--r--modules/chanserv/enforce.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/chanserv/enforce.cpp b/modules/chanserv/enforce.cpp
index c2a9fbe2d..e1d084075 100644
--- a/modules/chanserv/enforce.cpp
+++ b/modules/chanserv/enforce.cpp
@@ -73,7 +73,7 @@ class CommandCSEnforce : public Command
Anope::string mask = ci->GetIdealBan(user);
Anope::string reason = Language::Translate(user, _("RESTRICTED enforced by ")) + source.GetNick();
ci->c->SetMode(NULL, "BAN", mask);
- ci->c->Kick(NULL, user, "%s", reason.c_str());
+ ci->c->Kick(NULL, user, reason);
}
source.Reply(_("\002Restricted\002 enforced on \002{0}\002."), ci->GetName());
@@ -105,7 +105,7 @@ class CommandCSEnforce : public Command
Anope::string reason = Language::Translate(user, _("REGONLY enforced by ")) + source.GetNick();
if (!ci->c->HasMode("REGISTEREDONLY"))
ci->c->SetMode(NULL, "BAN", mask);
- ci->c->Kick(NULL, user, "%s", reason.c_str());
+ ci->c->Kick(NULL, user, reason);
}
source.Reply(_("\002Registered only\002 enforced on \002{0}\002."), ci->GetName());
@@ -137,7 +137,7 @@ class CommandCSEnforce : public Command
Anope::string reason = Language::Translate(user, _("SSLONLY enforced by ")) + source.GetNick();
if (!ci->c->HasMode("SSL"))
ci->c->SetMode(NULL, "BAN", mask);
- ci->c->Kick(NULL, user, "%s", reason.c_str());
+ ci->c->Kick(NULL, user, reason);
}
source.Reply(_("\002SSL only\002 enforced on %s."), ci->GetName().c_str());
@@ -166,7 +166,7 @@ class CommandCSEnforce : public Command
User *user = users[i];
Anope::string reason = Language::Translate(user, _("BANS enforced by ")) + source.GetNick();
- ci->c->Kick(NULL, user, "%s", reason.c_str());
+ ci->c->Kick(NULL, user, reason);
}
source.Reply(_("\002Bans\002 enforced on %s."), ci->GetName().c_str());
@@ -221,7 +221,7 @@ class CommandCSEnforce : public Command
User *user = users[i];
Anope::string reason = Language::Translate(user, _("LIMIT enforced by ")) + source.GetNick();
- ci->c->Kick(NULL, user, "%s", reason.c_str());
+ ci->c->Kick(NULL, user, reason);
}
source.Reply(_("LIMIT enforced on \002{0}\002, \002{1]\002 users removed."), ci->GetName(), users.size());