summaryrefslogtreecommitdiffstats
path: root/docs/plugins/addon_plugin.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/plugins/addon_plugin.rst')
-rw-r--r--docs/plugins/addon_plugin.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/plugins/addon_plugin.rst b/docs/plugins/addon_plugin.rst
index bef5b115e..8f1adf39a 100644
--- a/docs/plugins/addon_plugin.rst
+++ b/docs/plugins/addon_plugin.rst
@@ -95,7 +95,7 @@ It requires a `dict` that maps event names to function names or a `list` of func
print "The underlying event (allDownloadsFinished) for this method is not available through the base class"
An advantage of the event listener is that you are able to register and remove the listeners at runtime.
-Use `self.manager.addEvent("name", function)`, `self.manager.removeEvent("name", function)` and see doc for
+Use `self.manager.listenTo("name", function)`, `self.manager.removeEvent("name", function)` and see doc for
:class:`HookManager <pyload.HookManager.HookManager>`. Contrary to ``event_map``, ``function`` has to be a reference
and **not** a `string`.