nicer patch

This commit is contained in:
Yann Leboulanger 2005-07-02 23:07:26 +00:00
parent 3f32315dd0
commit bb89871657

View file

@ -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)