!bbb als kommando wird ignoriert
This commit is contained in:
parent
0a080a67d7
commit
cad82872e8
1 changed files with 3 additions and 1 deletions
|
@ -44,7 +44,9 @@ def get_command_from_body(stanza):
|
||||||
if body is not False:
|
if body is not False:
|
||||||
if body.lstrip().startswith('!'):
|
if body.lstrip().startswith('!'):
|
||||||
word = body.split()[0]
|
word = body.split()[0]
|
||||||
if word[1:].isalpha():
|
if word.lower() == "!bbb":
|
||||||
|
return False
|
||||||
|
elif word[1:].isalpha():
|
||||||
return word[1:].lower()
|
return word[1:].lower()
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue