diff --git a/lyrebird_bugit/event_handler.py b/lyrebird_bugit/event_handler.py index 4458350..217d370 100644 --- a/lyrebird_bugit/event_handler.py +++ b/lyrebird_bugit/event_handler.py @@ -62,7 +62,7 @@ def on_upload_files(msg): def on_notice(msg): - conf_autoissue = application.config.get('autoissue', False) + conf_autoissue = application.config.get('plugin.bugit.autoissue', False) if not conf_autoissue: return template_loader.notice_handler(msg) diff --git a/lyrebird_bugit/template_loader.py b/lyrebird_bugit/template_loader.py index 8dd3bd2..9661752 100644 --- a/lyrebird_bugit/template_loader.py +++ b/lyrebird_bugit/template_loader.py @@ -79,7 +79,7 @@ def notice_handler(msg): return # Filter out messages from unconfigured extensions - checker_switch = application.config.get('autoissue.checker.switch', {}) + checker_switch = application.config.get('plugin.bugit.autoissue.checker_switch', {}) sender_file = msg.get('sender', {}).get('file', '') if sender_file not in checker_switch: return