diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2007-02-28 16:02:43 (GMT) |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2007-02-28 16:02:43 (GMT) |
commit | 065cd6bc20632b7d82931442dc85ef9475f8f7c5 (patch) | |
tree | 73194de7de1ec807a02a407ace613034b507025d /services/presence2/presenceservice.py | |
parent | 403c2abc5c21069dbc1f77babc7396b5a1bfbe28 (diff) |
start to use aliasing interface for nick
Diffstat (limited to 'services/presence2/presenceservice.py')
-rw-r--r-- | services/presence2/presenceservice.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/services/presence2/presenceservice.py b/services/presence2/presenceservice.py index 9dee12f..f3739e3 100644 --- a/services/presence2/presenceservice.py +++ b/services/presence2/presenceservice.py @@ -78,8 +78,9 @@ class PresenceService(dbus.service.Object): def _server_status_cb(self, plugin, status, reason): pass - def _contact_online(self, tp, handle, key): + def _contact_online(self, tp, handle, props): new_buddy = False + key = props['key'] buddy = self._buddies.get(key) if not buddy: @@ -99,6 +100,7 @@ class PresenceService(dbus.service.Object): if new_buddy: self.BuddyAppeared(buddy.object_path()) + buddy.set_properties(props) def _contact_offline(self, tp, handle): buddy = self._handles[tp].pop(handle) |