From cfd182b229cf0b16cc16ca0b3f66780aa6062b54 Mon Sep 17 00:00:00 2001 From: Thorsten Date: Thu, 4 Oct 2018 21:53:34 +0200 Subject: [PATCH] dang it --- distbot/plugins/feeds.py | 2 +- distbot/plugins/plugin_help.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/distbot/plugins/feeds.py b/distbot/plugins/feeds.py index 4bf537b..4d5e5e7 100644 --- a/distbot/plugins/feeds.py +++ b/distbot/plugins/feeds.py @@ -26,7 +26,7 @@ class DSAWatcher(Worker): "nick.dsa-watcher.start", "nick.dsa-watcher.stop", "nick.dsa-watcher.run", "nick.dsa-watcher.crawl"] description = 'automatically crawls for newly published Debian Security Announces' - usage = "call with start, stop for background control or \"crawl\" for an intermediate status report" + usage = "call dsa-watcher with start, stop for background control or \"crawl\" for an intermediate status report" @staticmethod def get_id_from_about_string(about): diff --git a/distbot/plugins/plugin_help.py b/distbot/plugins/plugin_help.py index ace8928..ff0e26a 100644 --- a/distbot/plugins/plugin_help.py +++ b/distbot/plugins/plugin_help.py @@ -46,11 +46,10 @@ class Plugins(Worker): ch.basic_ack(delivery_tag=method.delivery_tag) def build_reverse_lookup(self): - reverse_lookup = {} for plugin, definition in self.plugin_storage.items(): for key in definition['bindings']: if key.startswith("nick"): - reverse_lookup[key.split('.')[1]] = plugin + self.reverse_lookup[key.split('.')[1]] = plugin def send_help(self, plugin_name=None): if not plugin_name: -- 2.39.2