From c04e06e5566c05ee7ebca554960b9244549a7e90 Mon Sep 17 00:00:00 2001 From: Hash Borgir Date: Sat, 9 May 2026 20:37:05 -0500 Subject: [PATCH] Karma logging fix --- plugins/karma.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/karma.py b/plugins/karma.py index bcd47c3..9e4786f 100644 --- a/plugins/karma.py +++ b/plugins/karma.py @@ -473,10 +473,13 @@ async def handle_command(room, message, bot, prefix, config): # Debug logging message_body = message.body if hasattr(message, 'body') else str(message) - logging.info(f"Karma plugin received message: '{message_body}' from {message.sender}") + logging.debug(f"Karma plugin received message: '{message_body}' from {message.sender}") # Get the full command (including what might be karma++ etc.) - full_cmd = match.command() if hasattr(match, 'command') else '' + try: + full_cmd = match.command() + except IndexError: + full_cmd = '' logging.debug(f"Full command: '{full_cmd}'")