Improve message content processing by stripping trailing whitespace and newlines

- Added a step to always strip trailing whitespace and newlines from message content in MessageHandler
This commit is contained in:
agessaman
2026-01-01 15:20:53 -08:00
parent 72b7ebbb1e
commit 4e890b4b7b
+3
View File
@@ -1253,6 +1253,9 @@ class MessageHandler:
self.logger.debug(f"Extracted sender from text: {sender_id}")
self.logger.debug(f"Message content for processing: {message_content}")
# Always strip trailing whitespace/newlines from message content to handle cases like "Wx 98104\n"
message_content = message_content.strip()
# Get channel name from channel number
channel_name = self.bot.channel_manager.get_channel_name(channel_idx)