bug: channel_keywords-Filter wird in execute_commands ignoriert #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Die Konfigurationsoption
[Channels] channel_keywordssoll einschränken, welche Befehle in Kanälen erlaubt sind. Diese Prüfung findet incheck_keywords()statt – inexecute_commands()fehlt sie jedoch vollständig.Datei:
modules/command_manager.py→execute_commands()Ablauf des Fehlers
wxin einem Kanalcheck_keywords()blocktwxkorrekt via_is_channel_trigger_allowed()→ kein Eintrag inkeyword_matchesplugin_command_with_response_matchedbleibtFalseexecute_commands()wird aufgerufen, findetwxviashould_execute()– keine_is_channel_trigger_allowed()-Prüfungwxwird trotzdem ausgeführt ✗Reproduzierbar mit
Dann
wxin einem Kanal senden → Wetter-Antwort erscheint, obwohlwxnicht inchannel_keywordssteht.Fix
In
execute_commands()direkt nach demshould_execute()-Check einfügen:Betroffene Zeile:
execute_commands()nachif command.should_execute(message):