Update plugins to use session_bind handler for disco, and use plugin_end
This commit is contained in:
@@ -48,6 +48,11 @@ class XEP_0092(BasePlugin):
|
||||
|
||||
register_stanza_plugin(Iq, Version)
|
||||
|
||||
def plugin_end(self):
|
||||
self.xmpp.remove_handler('Software Version')
|
||||
self.xmpp['xep_0030'].del_feature(feature='jabber:iq:version')
|
||||
|
||||
def session_bind(self, jid):
|
||||
self.xmpp.plugin['xep_0030'].add_feature('jabber:iq:version')
|
||||
|
||||
def _handle_version(self, iq):
|
||||
|
||||
Reference in New Issue
Block a user