From 8ccba78a152166363ce24c417da7c8c2bff59015 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 22 Apr 2009 08:39:10 +0000 Subject: [PATCH] [tpatnoe] don't add a to attribut to roster pushes if we don't get a from. Fixes #4978 --- src/common/connection_handlers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index e414e2185..8b3dd6d26 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -1549,9 +1549,8 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco, self.dispatch('ROSTER_INFO', (jid, name, sub, ask, groups)) if not self.connection or self.connected < 2: raise common.xmpp.NodeProcessed - server = gajim.config.get_per('accounts', self.name, 'hostname') reply = common.xmpp.Iq(typ='result', attrs={'id': iq_obj.getID()}, - to=server, frm=iq_obj.getTo(), xmlns=None) + to=iq_obj.getFrom(), frm=iq_obj.getTo(), xmlns=None) self.connection.send(reply) raise common.xmpp.NodeProcessed