mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-24 03:00:15 +00:00
Merge branch 'develop' into exceptions
This commit is contained in:
commit
5c1562f36b
2 changed files with 2 additions and 2 deletions
|
@ -129,7 +129,7 @@ class ComponentXMPP(BaseXMPP):
|
||||||
|
|
||||||
handshake = ET.Element('{jabber:component:accept}handshake')
|
handshake = ET.Element('{jabber:component:accept}handshake')
|
||||||
handshake.text = hashlib.sha1(pre_hash).hexdigest().lower()
|
handshake.text = hashlib.sha1(pre_hash).hexdigest().lower()
|
||||||
self.send_xml(handshake)
|
self.send_xml(handshake, now=True)
|
||||||
|
|
||||||
def _handle_handshake(self, xml):
|
def _handle_handshake(self, xml):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -171,7 +171,7 @@ class xep_0050(base_plugin):
|
||||||
"""
|
"""
|
||||||
if jid is None:
|
if jid is None:
|
||||||
jid = self.xmpp.boundjid
|
jid = self.xmpp.boundjid
|
||||||
elif isinstance(jid, str):
|
elif not isinstance(jid, JID):
|
||||||
jid = JID(jid)
|
jid = JID(jid)
|
||||||
item_jid = jid.full
|
item_jid = jid.full
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue