comparison src/core/xmpp.py @ 471:6cd04adddaea

core: exceptions moved to core plugin group blog: group blog now manage public microblogs
author Goffi <goffi@goffi.org>
date Wed, 04 Apr 2012 00:06:44 +0200
parents 47af60767013
children 2a072735e459
comparison
equal deleted inserted replaced
470:5c916b99d0f6 471:6cd04adddaea
185 #self.host.memory.addContact(item.jid, item_attr, item.groups, self.parent.profile) 185 #self.host.memory.addContact(item.jid, item_attr, item.groups, self.parent.profile)
186 186
187 bare_jid = item.jid.userhost() 187 bare_jid = item.jid.userhost()
188 self._jids[bare_jid] = item 188 self._jids[bare_jid] = item
189 for group in item.groups: 189 for group in item.groups:
190 self._groups.get(group,set()).add(bare_jid) 190 self._groups.setdefault(group,set()).add(bare_jid)
191 self.host.bridge.newContact(item.jid.full(), self.getAttributes(item), item.groups, self.parent.profile) 191 self.host.bridge.newContact(item.jid.full(), self.getAttributes(item), item.groups, self.parent.profile)
192 192
193 def onRosterRemove(self, entity): 193 def onRosterRemove(self, entity):
194 """Called when a roster removal event is received""" 194 """Called when a roster removal event is received"""
195 print _("removing %s from roster list") % entity.full() 195 print _("removing %s from roster list") % entity.full()