increase message limit to 2000
This commit is contained in:
parent
d0d6d7d00d
commit
dbead22cc1
|
|
@ -85,14 +85,14 @@ swear_words = [
|
|||
]
|
||||
# Function to check message validity
|
||||
# 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
|
||||
def is_message_valid():
|
||||
current_message = message_text.get("1.0", "end-1c")
|
||||
|
||||
# ceck for message length
|
||||
if len(current_message) > 1000:
|
||||
showwarning("Warnung", "Deine Nachricht ist zu lang, bitte beschränke Dich auf 1000 Zeichen")
|
||||
if len(current_message) > 2000:
|
||||
showwarning("Warnung", "Deine Nachricht ist zu lang, bitte beschränke Dich auf 2000 Zeichen")
|
||||
message_text.focus_set()
|
||||
return False
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user