From 41eab0e98db56ddafebb529035d139a2d93e0ff8 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Fri, 6 Sep 2019 13:23:01 -0500 Subject: [PATCH] fixed command parser plugin command building --- onionr/netcontroller/netcontrol.py | 1 - onionr/onionrcommands/parser/__init__.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/onionr/netcontroller/netcontrol.py b/onionr/netcontroller/netcontrol.py index 8f4be3c1..39dafa0d 100644 --- a/onionr/netcontroller/netcontrol.py +++ b/onionr/netcontroller/netcontrol.py @@ -37,7 +37,6 @@ def add_bridges(torrc: str)->str: return torrc - class NetController: ''' This class handles hidden service setup on Tor and I2P diff --git a/onionr/onionrcommands/parser/__init__.py b/onionr/onionrcommands/parser/__init__.py index f988ae15..22c7cd69 100644 --- a/onionr/onionrcommands/parser/__init__.py +++ b/onionr/onionrcommands/parser/__init__.py @@ -27,13 +27,13 @@ from . import arguments, recommend plugin_command = lambda cmd: 'on_%s_cmd' % (cmd,) def register_plugin_commands(cmd): - cmd = 'on_%s_cmd' % (cmd,) plugin_cmd = plugin_command(cmd) for pl in onionrplugins.get_enabled_plugins(): pl = onionrplugins.get_plugin(pl) if hasattr(pl, plugin_cmd): getattr(pl, plugin_cmd)(onionrpluginapi.PluginAPI) return True + return False def register(): """Registers commands and handles help command processing"""