summaryrefslogtreecommitdiff
path: root/include
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 /include
parent87ec095a89bbc73a4dd16858bea499f466066212 (diff)
Remove C style var args from Channel::Kick
Diffstat (limited to 'include')
-rw-r--r--include/channels.h7
1 files changed, 6 insertions, 1 deletions
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<typename... Args> bool Kick(User *bi, User *u, const Anope::string &reason, Args&&... args)
+ {
+ return Kick(bi, u, Anope::Format(reason, std::forward<Args>(args)...));
+ }
/** Get all modes set on this channel, excluding status modes.
* @return a map of modes and their optional parameters.