nicer patch
This commit is contained in:
parent
3f32315dd0
commit
bb89871657
1 changed files with 2 additions and 3 deletions
|
@ -981,10 +981,9 @@ class Connection:
|
||||||
def request_os_info(self, jid, resource):
|
def request_os_info(self, jid, resource):
|
||||||
if not self.connection:
|
if not self.connection:
|
||||||
return
|
return
|
||||||
|
to_whom_jid = jid
|
||||||
if resource:
|
if resource:
|
||||||
to_whom_jid = jid + '/' + resource
|
to_whom_jid += '/' + resource
|
||||||
else:
|
|
||||||
to_whom_jid = jid
|
|
||||||
iq = common.xmpp.Iq(to=to_whom_jid, typ = 'get', queryNS =\
|
iq = common.xmpp.Iq(to=to_whom_jid, typ = 'get', queryNS =\
|
||||||
common.xmpp.NS_VERSION)
|
common.xmpp.NS_VERSION)
|
||||||
self.to_be_sent.insert(0, iq)
|
self.to_be_sent.insert(0, iq)
|
||||||
|
|
Loading…
Add table
Reference in a new issue