From 5621397762f42699caf89c074057509cd4ff821f Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Sat, 2 Jul 2005 23:03:11 +0000 Subject: [PATCH] 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 --- src/common/connection.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/common/connection.py b/src/common/connection.py index c65d71d2e..280ed1feb 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -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)