From ce9a9f0843689cf6ec5b5884258966806d40e595 Mon Sep 17 00:00:00 2001 From: Someone Date: Mon, 10 Jan 2022 18:13:06 +0100 Subject: [PATCH] modules/CommandSpoiler.py --- modules/CommandSpoiler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/CommandSpoiler.py b/modules/CommandSpoiler.py index 50c415f..5ef48c9 100644 --- a/modules/CommandSpoiler.py +++ b/modules/CommandSpoiler.py @@ -15,8 +15,8 @@ class CommandSpoiler(AbstractCommand): def on_POST(self, request, data): - if len(msg_text[1]) > 15000: - request.respond_cmd_err("``/"+self.TRIGGER+"`` reason-text must be smaller than 15000 characters :(\nYour text is: "+str(len(msg_text[1]))+" characters long.") + if len(data['text']) > 15000: + request.respond_cmd_err("``/"+self.TRIGGER+"`` reason-text must be smaller than 15000 characters :(\nYour text is: "+str(len(data['text']))+" characters long.") return att = [{ -- 2.43.0