Show
Ignore:
Timestamp:
08/30/07 01:38:15 (15 months ago)
Author:
roidelapluie
Message:

[Peritus] handle confirmation requests sent via messages for XEP-0070. fixes #2995

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/gajim_0.11.1/src/common/connection_handlers.py

    r8617 r8618  
    11821182                        method = iq_obj.getTagAttr('confirm', 'method') 
    11831183                        url = iq_obj.getTagAttr('confirm', 'url') 
    1184                         self.dispatch('HTTP_AUTH', (method, url, id, iq_obj)); 
     1184                        msg = iq_obj.getTagData('body') # In case it's a message with a body 
     1185                        self.dispatch('HTTP_AUTH', (method, url, id, iq_obj, msg)); 
    11851186                raise common.xmpp.NodeProcessed 
    11861187 
     
    13851386                if msg.getTag('event') is not None: 
    13861387                        self._pubsubEventCB(con, msg) 
     1388                        return 
     1389                # check if the message is a xep70-confirmation-request 
     1390                if msg.getTag('confirm') and msg.getTag('confirm').namespace == \ 
     1391                common.xmpp.NS_HTTP_AUTH: 
     1392                        self._HttpAuthCB(con, msg) 
    13871393                        return 
    13881394                msgtxt = msg.getBody()