diff options
author | Hernan E Grecco <hernan-edgardo.grecco@mpi-dortmund.mpg.de> | 2010-05-26 06:10:34 +0800 |
---|---|---|
committer | Nathan Fritz <fritzy@netflint.net> | 2010-05-26 06:49:01 +0800 |
commit | f18c79082490b9b25c72d8c8870dcbf63770ffb6 (patch) | |
tree | cb8cd72aab497aa43fa61d1481a8ad33106be4e8 /sleekxmpp/plugins/xep_0092.py | |
parent | f165b4b52b3bbf1989a6144c3e6417f3756c62b6 (diff) | |
download | slixmpp-f18c79082490b9b25c72d8c8870dcbf63770ffb6.tar.gz slixmpp-f18c79082490b9b25c72d8c8870dcbf63770ffb6.tar.bz2 slixmpp-f18c79082490b9b25c72d8c8870dcbf63770ffb6.tar.xz slixmpp-f18c79082490b9b25c72d8c8870dcbf63770ffb6.zip |
Fixed error registering a plugin. To add a feature to another plugin, it should look into xmpp.plugin dict
Diffstat (limited to 'sleekxmpp/plugins/xep_0092.py')
-rw-r--r-- | sleekxmpp/plugins/xep_0092.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0092.py b/sleekxmpp/plugins/xep_0092.py index 3d026382..ca0d7e17 100644 --- a/sleekxmpp/plugins/xep_0092.py +++ b/sleekxmpp/plugins/xep_0092.py @@ -33,7 +33,7 @@ class xep_0092(base.base_plugin): self.xmpp.add_handler("<iq type='get' xmlns='%s'><query xmlns='jabber:iq:version' /></iq>" % self.xmpp.default_ns, self.report_version) def post_init(self): - self.xmpp['xep_0030'].add_feature('jabber:iq:version') + self.xmpp.plugin['xep_0030'].add_feature('jabber:iq:version') def report_version(self, xml): iq = self.xmpp.makeIqResult(xml.get('id', 'unknown')) |