Changeset 86

Show
Ignore:
Timestamp:
07/16/07 22:51:53 (1 year ago)
Author:
roidelapluie
Message:

beter handling of invitations

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gajim/branches/chat2muc/src/common/connection.py

    r83 r86  
    13931393                c = message.addChild(name = 'x', namespace = common.xmpp.NS_MUC_USER) 
    13941394                c = c.addChild(name = 'invite', attrs={'to' : to}) 
     1395                if continue_tag: 
     1396                        c.addChild(name = 'continue') 
    13951397                if reason != '': 
    13961398                        c.setTagData('reason', reason) 
    1397                 if continue_tag: 
    1398                         c.addChild(name = 'continue') 
    13991399                self.connection.send(message) 
    14001400 
  • gajim/branches/chat2muc/src/common/connection_handlers.py

    r85 r86  
    15291529                                password = invite.getTagData('password') 
    15301530                                is_continued = False 
    1531                                 if invite.getTag('continue'): 
     1531                                if invite.getTag('invite').getTag('continue'): 
    15321532                                        is_continued = True 
    15331533                                        print '1' 
  • gajim/branches/chat2muc/src/dialogs.py

    r85 r86  
    33003300 
    33013301                # TODO: make a list based on service discovery 
     3302                self.servers.append(['chat.jabberfr.org']) 
    33023303                self.servers.append(['conference.gajim.org']) 
    33033304 
     
    33483349 
    33493350        def _on_keypress_event(self, widget, event): 
    3350                 if event.state and gtk.gdk.MOD1_MASK and (event.keyval == gtk.keysyms.c \ 
     3351                if (event.state & gtk.gdk.MOD1_MASK) and (event.keyval == gtk.keysyms.c \ 
    33513352                or event.keyval == gtk.keysyms.C): 
    33523353                                self.toggle_server_selection_visible() 
  • gajim/branches/chat2muc/src/gajim.py

    r85 r86  
    12101210                room_jid = array[0] 
    12111211                if helpers.allow_popup_window(account) or not self.systray_enabled: 
     1212                        print '11' 
    12121213                        dialogs.InvitationReceivedDialog(account, room_jid, jid, array[3], 
    1213                                 array[2], is_continued=array[3]) 
     1214                                array[2], is_continued=array[4]) 
    12141215                        return 
    12151216 
    12161217                self.add_event(account, jid, 'gc-invitation', (room_jid, array[2], 
    1217                         array[3])) 
     1218                        array[3], array[4])) 
    12181219 
    12191220                if helpers.allow_showing_notification(account): 
     
    12241225                        notify.popup(event_type, jid, account, 'gc-invitation', path, 
    12251226                                event_type, room_jid) 
     1227                        print '12' 
    12261228 
    12271229        def handle_event_bad_passphrase(self, account, array): 
     
    22062208                        data = event.parameters 
    22072209                        dialogs.InvitationReceivedDialog(account, data[0], jid, data[2], 
    2208                                 data[1]
     2210                                data[1], data[3]
    22092211                        gajim.events.remove_events(account, jid, event) 
    22102212                        self.roster.draw_contact(jid, account)