increase message limit to 2000

This commit is contained in:
Jules 2026-07-07 22:31:39 +02:00
parent d0d6d7d00d
commit dbead22cc1

View File

@ -85,14 +85,14 @@ swear_words = [
] ]
# Function to check message validity # Function to check message validity
# validity consists of: # validity consists of:
## 1. not more than 1000 Characters message length ## 1. not more than 2000 Characters message length
## 2. no words from the bad-words-list contained ## 2. no words from the bad-words-list contained
def is_message_valid(): def is_message_valid():
current_message = message_text.get("1.0", "end-1c") current_message = message_text.get("1.0", "end-1c")
# ceck for message length # ceck for message length
if len(current_message) > 1000: if len(current_message) > 2000:
showwarning("Warnung", "Deine Nachricht ist zu lang, bitte beschränke Dich auf 1000 Zeichen") showwarning("Warnung", "Deine Nachricht ist zu lang, bitte beschränke Dich auf 2000 Zeichen")
message_text.focus_set() message_text.focus_set()
return False return False