From bb8987165727947dee48e4434e2e6e03b76f9130 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 2 Jul 2005 23:07:26 +0000 Subject: [PATCH] nicer patch --- src/common/connection.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/common/connection.py b/src/common/connection.py index 280ed1feb..fe0aaaa56 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -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)