Fix error UnboundLocalError (Thank you. mirux).

This commit is contained in:
Schimon Jehudah, Adv. 2024-09-16 15:20:03 +03:00
parent 2a9d2657b1
commit 640677437c
2 changed files with 7 additions and 5 deletions

View file

@ -1,2 +1,2 @@
__version__ = '0.1.99'
__version_info__ = (0, 1, 99)
__version__ = '0.1.100'
__version_info__ = (0, 1, 100)

View file

@ -157,9 +157,11 @@ class XmppChat:
else:
omemo_decrypted = None
# Adding one to the length because of assumption that a comma or a dot is added
if message_type == 'groupchat':
# Adding one to the length because of
# assumption that a comma or a dot is added
alias_of_slixfeed_length = len(alias_of_slixfeed) + 1
if message_type == 'groupchat': command = (command[alias_of_slixfeed_length:]).lstrip()
command = (command[alias_of_slixfeed_length:]).lstrip()
if isinstance(command, Message): command = command['body']
command_lowercase = command.lower()