aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy/empathy-handler.c')
-rw-r--r--libempathy/empathy-handler.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/libempathy/empathy-handler.c b/libempathy/empathy-handler.c
index 8374a00a1..ad4f415e0 100644
--- a/libempathy/empathy-handler.c
+++ b/libempathy/empathy-handler.c
@@ -175,13 +175,14 @@ handler_set_property (GObject *object,
break;
case PROP_NAME:
priv->name = g_value_dup_string (value);
- if (EMP_STR_EMPTY (priv->name))
- {
- TpDBusDaemon *bus;
+ if (EMP_STR_EMPTY (priv->name))
+ {
+ TpDBusDaemon *bus;
- bus = tp_dbus_daemon_dup (NULL);
- priv->name = g_strdup_printf ("%s%p",
+ bus = tp_dbus_daemon_dup (NULL);
+ priv->name = g_strdup_printf ("badger_%s_%p",
tp_dbus_daemon_get_unique_name (bus), object);
+ g_strdelimit (priv->name, ":.", '_');
g_object_unref (bus);
}
break;