Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-05-15 02:48:53 (GMT)
committer Dan Williams <dcbw@redhat.com>2007-05-15 02:48:53 (GMT)
commit871828f307cafbd2d320ba5a0228b88a3170a6ef (patch)
tree7153b3d952045565d01ebd7afc5289754642428a /services
parent79aad47327846152743e32c84b041996c0699003 (diff)
Set alias twice so server actually gets it
Diffstat (limited to 'services')
-rw-r--r--services/presence/server_plugin.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/services/presence/server_plugin.py b/services/presence/server_plugin.py
index 7aa85c2..c7f6257 100644
--- a/services/presence/server_plugin.py
+++ b/services/presence/server_plugin.py
@@ -176,6 +176,8 @@ class ServerPlugin(gobject.GObject):
if properties.has_key("nick"):
self._set_self_alias()
+ # Hack; send twice to make sure the server gets it
+ gobject.timeout_add(1000, self._set_self_alias)
if properties.has_key("color") or properties.has_key("ip4-address"):
if self._conn_status == CONNECTION_STATUS_CONNECTED:
@@ -354,6 +356,8 @@ class ServerPlugin(gobject.GObject):
# Set initial buddy properties, avatar, and activities
self._set_self_olpc_properties()
self._set_self_alias()
+ # Hack; send twice to make sure the server gets it
+ gobject.timeout_add(1000, self._set_self_alias)
self._set_self_activities()
self._set_self_current_activity()
self._set_self_avatar()
@@ -489,6 +493,7 @@ class ServerPlugin(gobject.GObject):
self._conn[CONN_INTERFACE_ALIASING].SetAliases({self_handle : alias},
reply_handler=self._ignore_success_cb,
error_handler=lambda *args: self._log_error_cb("setting alias", *args))
+ return False
def _set_self_activities(self):
"""Forward set of joined activities to network