Changeset 6261 for trunk/src/gajim.py
- Timestamp:
- 05/01/06 20:29:12 (3 years ago)
- Files:
-
- 1 modified
-
trunk/src/gajim.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gajim.py
r6235 r6261 730 730 return 731 731 732 def handle_event_agent_removed(self, account, agent): 733 # remove transport's contacts from treeview 734 jid_list = gajim.contacts.get_jid_list(account) 735 for jid in jid_list: 736 if jid.endswith('@' + agent): 737 c = gajim.contacts.get_first_contact_from_jid(account, jid) 738 gajim.log.debug( 739 'Removing contact %s due to unregistered transport %s'\ 740 % (jid, agent)) 741 gajim.connections[account].unsubscribe(c.jid) 742 # Transport contacts can't have 2 resources 743 if c.jid in gajim.to_be_removed[account]: 744 # This way we'll really remove it 745 gajim.to_be_removed[account].remove(c.jid) 746 gajim.contacts.remove_jid(account, c.jid) 747 self.roster.remove_contact(c, account) 748 732 749 def handle_event_register_agent_info(self, account, array): 733 750 #('REGISTER_AGENT_INFO', account, (agent, infos, is_form)) … … 1624 1641 'AGENT_ERROR_INFO': self.handle_event_agent_info_error, 1625 1642 'AGENT_ERROR_ITEMS': self.handle_event_agent_items_error, 1643 'AGENT_REMOVED': self.handle_event_agent_removed, 1626 1644 'REGISTER_AGENT_INFO': self.handle_event_register_agent_info, 1627 1645 'AGENT_INFO_ITEMS': self.handle_event_agent_info_items,
