nicer patch

This commit is contained in:
Yann Leboulanger 2005-07-02 23:07:26 +00:00
parent 3f32315dd0
commit bb89871657
1 changed files with 2 additions and 3 deletions

View File

@ -981,10 +981,9 @@ class Connection:
def request_os_info(self, jid, resource):
if not self.connection:
return
to_whom_jid = jid
if resource:
to_whom_jid = jid + '/' + resource
else:
to_whom_jid = jid
to_whom_jid += '/' + resource
iq = common.xmpp.Iq(to=to_whom_jid, typ = 'get', queryNS =\
common.xmpp.NS_VERSION)
self.to_be_sent.insert(0, iq)