EveCogs/wormhole
Viktor AI 9598f752c1 fix: Wormhole v3.4.2 — empty-prefix command filter bug
The v3.4.1 command filter used bot.get_context() to detect commands,
but an empty-string prefix ('') matched EVERY message, causing
ctx.valid to return True for any message whose first word happened
to be a registered command.  With enough built-in commands (help,
ping, info, set, etc.) this silently dropped most or all relay
traffic (total_messages stayed at 0).

Fix: require ctx.prefix to be truthy (non-empty) before skipping
a message as a command.  Empty-prefix matches are now ignored,
so only messages with a real prefix (!, @bot, etc.) are filtered.

Also re-added the empty-prefix warning to 'wh debug' output so
users know to clean up their bot prefix configuration.
2026-05-12 12:53:18 +00:00
..
__init__.py v3.2.0 — Phase 3: DM relay, starboard, karma, auto-mod, highlights, search & more 2026-05-07 22:19:09 +00:00
info.json fix: Wormhole v3.4.2 — empty-prefix command filter bug 2026-05-12 12:53:18 +00:00
utils.py v3.4.0 — Phase 5: hybrid commands, context menus, mention policy, ToS gate, reports, mod edit/delete 2026-05-08 02:53:38 +00:00
wormhole.py fix: Wormhole v3.4.2 — empty-prefix command filter bug 2026-05-12 12:53:18 +00:00