if the resource is empty do not add an extra / [we do not known the resource if we are lower than mod in a muc and we ask version info
This commit is contained in:
parent
513a4c9f4f
commit
5621397762
|
@ -981,7 +981,11 @@ class Connection:
|
|||
def request_os_info(self, jid, resource):
|
||||
if not self.connection:
|
||||
return
|
||||
iq = common.xmpp.Iq(to=jid + '/' + resource, typ = 'get', queryNS =\
|
||||
if resource:
|
||||
to_whom_jid = jid + '/' + resource
|
||||
else:
|
||||
to_whom_jid = jid
|
||||
iq = common.xmpp.Iq(to=to_whom_jid, typ = 'get', queryNS =\
|
||||
common.xmpp.NS_VERSION)
|
||||
self.to_be_sent.insert(0, iq)
|
||||
|
||||
|
|
Loading…
Reference in New Issue