aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCerapter <cerap@protonmail.com>2018-07-28 18:35:48 +0200
committerCerapter <cerap@protonmail.com>2018-07-28 18:35:48 +0200
commitcfc2d74d303787c8694f735f6fe3d1f989073c32 (patch)
treec1830629469e936807ec17c5cae55246764842f2
parente8f07c68c2aec19f65318d4aa6241ebcb0f1ccf5 (diff)
Limit modcall reason size to 100.
-rw-r--r--courtroom.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/courtroom.cpp b/courtroom.cpp
index b70ec0b8..d0765b16 100644
--- a/courtroom.cpp
+++ b/courtroom.cpp
@@ -2438,6 +2438,7 @@ void Courtroom::on_call_mod_clicked()
"", &ok);
if (ok)
{
+ text = text.chopped(100);
ao_app->send_server_packet(new AOPacket("ZZ#" + text + "#%"));
}