From f93520882ad948ce450c0dbcbe8abcfa1dbf3956 Mon Sep 17 00:00:00 2001
From: Someone <someone@somenet.org>
Date: Mon, 10 Jan 2022 17:27:25 +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 5d14071..50c415f 100644
--- a/modules/CommandSpoiler.py
+++ b/modules/CommandSpoiler.py
@@ -15,8 +15,8 @@ class CommandSpoiler(AbstractCommand):
 
 
     def on_POST(self, request, data):
-        if len(data["text"]) > 15000:
-            request.cmd_respond_text_temp("``/spoiler`` failed: Spoiler-text must be smaller than 15000 characters :(\nYour text is: "+str(len(data["text"]))+" characters long.")
+        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.")
             return
 
         att = [{
-- 
2.43.0