summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-03-12 17:00:42 +0000
committerSadie Powell <sadie@witchery.services>2024-03-12 17:00:42 +0000
commit6fd7ca39e2ff6ba3c2e721e64432caa79ef0ffca (patch)
tree2477843a9bf207417c45c42434c764fa587bedb0
parentb8cd00b4122b7a243a2071268f2d395808782472 (diff)
Fix the reason when kicking users from suspended channels.
Closes #372.
-rw-r--r--src/channels.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index babe5c69c..2598d7602 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -783,7 +783,7 @@ bool Channel::Kick(BotInfo *bi, User *u, const char *reason, ...)
vsnprintf(buf, BUFSIZE - 1, reason, args);
va_end(args);
- return Kick(bi, u, Anope::string(reason));
+ return Kick(bi, u, Anope::string(buf));
}
bool Channel::Kick(BotInfo *bi, User *u, const Anope::string &reason)