From 488f7ed88691d9f7fa756a28702f6bee43d6a260 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Fri, 30 Mar 2012 23:02:48 -0700 Subject: Begin experiment with a centralized API callback registry. The API registry generalizes the node handler system from the xep_0030 plugin so that other plugins can use it. --- sleekxmpp/plugins/base.py | 1 + 1 file changed, 1 insertion(+) (limited to 'sleekxmpp/plugins/base.py') diff --git a/sleekxmpp/plugins/base.py b/sleekxmpp/plugins/base.py index f08023ba..ccea5ce4 100644 --- a/sleekxmpp/plugins/base.py +++ b/sleekxmpp/plugins/base.py @@ -269,6 +269,7 @@ class BasePlugin(object): def __init__(self, xmpp, config=None): self.xmpp = xmpp + self.api = self.xmpp.api.wrap(self.name) #: A plugin's behaviour may be configurable, in which case those #: configuration settings will be provided as a dictionary. -- cgit v1.2.3