!bbb als kommando wird ignoriert

This commit is contained in:
bernd 2025-03-20 20:45:21 +01:00
parent 0a080a67d7
commit cad82872e8

View file

@ -44,7 +44,9 @@ def get_command_from_body(stanza):
if body is not False:
if body.lstrip().startswith('!'):
word = body.split()[0]
if word[1:].isalpha():
if word.lower() == "!bbb":
return False
elif word[1:].isalpha():
return word[1:].lower()
return False