summaryrefslogtreecommitdiff
path: root/modules/commands/cs_akick.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-11-25 22:37:54 -0500
committerAdam <Adam@anope.org>2012-11-25 22:37:54 -0500
commit1bdb756b258e2acce1db96584b540f452370e1a8 (patch)
tree7c4d048f987627cbec23c32d8bc961ed8278aba0 /modules/commands/cs_akick.cpp
parent80c573eed7c053f8bf5ef437eb948e821b8adc07 (diff)
Restrict the length of kick reasons in cs_kick, cs_ban, and cs_akick
Diffstat (limited to 'modules/commands/cs_akick.cpp')
-rw-r--r--modules/commands/cs_akick.cpp3
1 files changed, 3 insertions, 0 deletions
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;