[tpatnoe] don't add a to attribut to roster pushes if we don't get a from. Fixes #4978

This commit is contained in:
Yann Leboulanger 2009-04-22 08:39:10 +00:00
parent 2ae16645a3
commit 8ccba78a15
1 changed files with 1 additions and 2 deletions

View File

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