From eb0917c4e7a265dfde0bfa22e1f95dc376210890 Mon Sep 17 00:00:00 2001 From: Riddle <75004732+Aimware0@users.noreply.github.com> Date: Thu, 16 Jun 2022 15:58:09 -0400 Subject: [PATCH] only send when @ in expression[0] --- src/game_stats.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game_stats.py b/src/game_stats.py index d9a3291..bac14e9 100644 --- a/src/game_stats.py +++ b/src/game_stats.py @@ -59,7 +59,8 @@ class GameStats: self._location_stats["totals"]["items"] += 1 if send_message and self._messenger.enabled and not skip_log: - self._messenger.send_item(item_name, img, self._location, ocr_text, expression, item_props) + if expression[0] == "@": + self._messenger.send_item(item_name, img, self._location, ocr_text, expression, item_props) def log_death(self, img: str): self._death_counter += 1