diff --git a/pinhook/plugin.py b/pinhook/plugin.py index 849934c..d0596e4 100644 --- a/pinhook/plugin.py +++ b/pinhook/plugin.py @@ -22,6 +22,8 @@ def message(msg): def add_plugin(command, func): cmds.append({'cmd': command, 'func': func}) +def clear_plugins(): + cmds.clear() def add_listener(name, func): lstnrs.append({'lstn': name, 'func': func})