summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0092.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2010-07-19 19:19:33 -0400
committerLance Stout <lancestout@gmail.com>2010-07-19 19:19:33 -0400
commitb5a14a0190f6ea45bfbc0e18a7ff6c61b6415865 (patch)
tree71eefc54a8c1d9586b1e4fb61ebb4b9d46bc2015 /sleekxmpp/plugins/xep_0092.py
parentfec8578cf61696d8ca85a6fe85a55be71d7109fd (diff)
downloadslixmpp-b5a14a0190f6ea45bfbc0e18a7ff6c61b6415865.tar.gz
slixmpp-b5a14a0190f6ea45bfbc0e18a7ff6c61b6415865.tar.bz2
slixmpp-b5a14a0190f6ea45bfbc0e18a7ff6c61b6415865.tar.xz
slixmpp-b5a14a0190f6ea45bfbc0e18a7ff6c61b6415865.zip
Can now pass a name to add_handler so that the handler can be reliably removed later.
Updated uses of add_handler to include a name.
Diffstat (limited to 'sleekxmpp/plugins/xep_0092.py')
-rw-r--r--sleekxmpp/plugins/xep_0092.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0092.py b/sleekxmpp/plugins/xep_0092.py
index aeebbe0c..77a6d9d0 100644
--- a/sleekxmpp/plugins/xep_0092.py
+++ b/sleekxmpp/plugins/xep_0092.py
@@ -30,7 +30,7 @@ class xep_0092(base.base_plugin):
self.xep = "0092"
self.name = self.config.get('name', 'SleekXMPP')
self.version = self.config.get('version', '0.1-dev')
- self.xmpp.add_handler("<iq type='get' xmlns='%s'><query xmlns='jabber:iq:version' /></iq>" % self.xmpp.default_ns, self.report_version)
+ self.xmpp.add_handler("<iq type='get' xmlns='%s'><query xmlns='jabber:iq:version' /></iq>" % self.xmpp.default_ns, self.report_version, name='Sofware Version')
def post_init(self):
base.base_plugin.post_init(self)