if not plugin_name:
msg = "Known commands/reactions:\n" + ", ".join(self.plugin_storage.keys())
else:
- definition = self.plugin_storage.get(plugin_name.lower()) \
- or self.plugin_storage.get(self.reverse_lookup.get(plugin_name.lower()))
+ definition = self.plugin_storage.get(plugin_name.lower())
+ if not definition:
+ self.build_reverse_lookup()
+ definition = self.plugin_storage.get(self.reverse_lookup.get(plugin_name.lower()))
if not definition:
return Action(msg="unknown command, try help")
msg = ("{}: \n"