From a64ede8632e1e60aba9d04d2fea9d107e339b7f3 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 7 Dec 2016 11:29:47 -0500 Subject: Remove C style var args from Channel::Kick --- include/channels.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/channels.h b/include/channels.h index 664f06a0a..d3161b7ae 100644 --- a/include/channels.h +++ b/include/channels.h @@ -245,7 +245,12 @@ class CoreExport Channel : public Base, public Extensible * @param reason The reason for the kick * @return true if the kick was scucessful, false if a module blocked the kick */ - bool Kick(User *bi, User *u, const char *reason = NULL, ...); + bool Kick(User *bi, User *u, const Anope::string &reason); + + template bool Kick(User *bi, User *u, const Anope::string &reason, Args&&... args) + { + return Kick(bi, u, Anope::Format(reason, std::forward(args)...)); + } /** Get all modes set on this channel, excluding status modes. * @return a map of modes and their optional parameters. -- cgit