X-Git-Url: https://us-delaporte.pagekite.me/gitweb/matrix-goal-bot.git/blobdiff_plain/2dfb9318625f70fd6838068d133e3dfe00000ac4..8958d1dc084e3d468e8880cafa29652754e99875:/matrix_goal_bot/bot.py diff --git a/matrix_goal_bot/bot.py b/matrix_goal_bot/bot.py index 417fca9..47c71a3 100644 --- a/matrix_goal_bot/bot.py +++ b/matrix_goal_bot/bot.py @@ -71,13 +71,13 @@ class GoalBot(): self.bot.run() async def handle_message(self, room, message): - logger.debug(f'Message: {message}') match = botlib.MessageMatch(room, message, self.bot, self.prefix) - if not match.is_not_from_this_bot() and match.prefix(): - logger.debug(f'Message: {message} was not for this bot.') + if not match.is_not_from_this_bot(): + # Let's not talk to our-self return + logger.debug(f'Message: {message}') if not match.prefix(): logger.debug(f'{message} - did not match {self.prefix}')