From cad82872e86194c8e604d365ce3eb5fdf3ff1f1f Mon Sep 17 00:00:00 2001 From: bernd Date: Thu, 20 Mar 2025 20:45:21 +0100 Subject: [PATCH] !bbb als kommando wird ignoriert --- common.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common.py b/common.py index 1e07cd9..5a0056c 100644 --- a/common.py +++ b/common.py @@ -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