From 1bdb756b258e2acce1db96584b540f452370e1a8 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 25 Nov 2012 22:37:54 -0500 Subject: Restrict the length of kick reasons in cs_kick, cs_ban, and cs_akick --- modules/commands/cs_akick.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/commands/cs_akick.cpp') diff --git a/modules/commands/cs_akick.cpp b/modules/commands/cs_akick.cpp index 29959bf32..9447b1aed 100644 --- a/modules/commands/cs_akick.cpp +++ b/modules/commands/cs_akick.cpp @@ -56,6 +56,9 @@ class CommandCSAKick : public Command NickCore *nc = NULL; const AutoKick *akick; + if (reason.length() > Config->CSReasonMax) + reason = reason.substr(0, Config->CSReasonMax); + if (!na) { Anope::string nick, user, host; -- cgit