From a01c9b2d0578a6c0dd495d10d46d574afb575a3f Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Wed, 25 Feb 2026 02:02:01 +0000 Subject: [PATCH] Silently drop unknown bang commands instead of responding Unknown !commands (like !mail, !login, !bbs from advBBS users) were getting "Unknown command, try !help" responses. Now returns None so the bot stays silent on commands it doesn't recognize. Co-Authored-By: Claude Opus 4.6 --- meshai/commands/dispatcher.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meshai/commands/dispatcher.py b/meshai/commands/dispatcher.py index 7f770f6..0d56fd6 100644 --- a/meshai/commands/dispatcher.py +++ b/meshai/commands/dispatcher.py @@ -141,8 +141,7 @@ class CommandDispatcher: handler = self._commands.get(cmd) if handler is None: - # Unknown command - return f"Unknown command: !{cmd.lower()}. Try !help" + return None try: logger.debug(f"Dispatching !{cmd.lower()} from {context.sender_id}")