Check truthness instead of length

This commit is contained in:
Midgard 2019-09-03 00:36:39 +02:00
parent 3c4f11dcb7
commit f54f83bb0d
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ def messages_post():
if len(message) > 200:
return "Message too long, maximum 200"
if len(message) == 0:
if not message:
return "No message found"
if "spam" in str(message, "UTF-8").lower():