diff --git a/onionr/onionrevents.py b/onionr/onionrevents.py index 66e596be..d0ed1e38 100755 --- a/onionr/onionrevents.py +++ b/onionr/onionrevents.py @@ -22,7 +22,7 @@ import config, logger, onionrplugins as plugins, onionrpluginapi as pluginapi from threading import Thread def get_pluginapi(onionr, data): - return pluginapi.pluginapi(onionr, data) + return pluginapi.SharedAPI(onionr, data) def __event_caller(event_name, data = {}, onionr = None): ''' diff --git a/onionr/onionrpluginapi.py b/onionr/onionrpluginapi.py index 0ebabda1..ba2ed817 100755 --- a/onionr/onionrpluginapi.py +++ b/onionr/onionrpluginapi.py @@ -143,7 +143,7 @@ class WebAPI: def get_callbacks(self, scope = None): return self.pluginapi.get_onionr().api.getCallbacks(scope = scope) -class pluginapi: +class SharedAPI: def __init__(self, onionr, data): self.onionr = onionr self.data = data