fixed bug when /join@everyone_mention_bot was treated as a message handler action

This commit is contained in:
miloszowi 2023-11-25 14:58:58 +00:00
parent a6b441b197
commit 878091deae

View File

@ -38,7 +38,7 @@ class InboundMessage:
GroupNameValidator.validate(group_name) GroupNameValidator.validate(group_name)
# done upon resolving a message handler action # done upon resolving a message handler action
if '@' in message_content: if '@' in message_content and '@everyone_mention_bot' not in message_content:
searched_message_part = [part for part in message_content.split(' ') if '@' in part][0] searched_message_part = [part for part in message_content.split(' ') if '@' in part][0]
group_name = re.sub(r'\W+', '', searched_message_part).lower() group_name = re.sub(r'\W+', '', searched_message_part).lower()