summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2011-08-19 10:50:25 (GMT)
committerXavier Claessens <xclaesse@gmail.com>2011-08-19 10:50:25 (GMT)
commitfa760b403158fa7e1162a7fd33dfb3556041d3e7 (patch)
tree4484b097af44e77e7a84ae6628b55da557c979ba
parent8db9abc63ea8a6a6765c50aa499e802254620f51 (diff)
downloadtelepathy-ssh-contact-fa760b403158fa7e1162a7fd33dfb3556041d3e7.tar.gz
telepathy-ssh-contact-fa760b403158fa7e1162a7fd33dfb3556041d3e7.tar.xz
add back account arg fixup
-rw-r--r--src/client.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/client.c b/src/client.c
index 6bca25f..09d22be 100644
--- a/src/client.c
+++ b/src/client.c
@@ -440,6 +440,17 @@ main (gint argc, gchar *argv[])
TpAccount *account;
GArray *features;
+ /* Fixup account path if needed */
+ if (!g_str_has_prefix (context.account_path, TP_ACCOUNT_OBJECT_PATH_BASE))
+ {
+ gchar *account_id = context.account_path;
+
+ context.account_path = g_strconcat (TP_ACCOUNT_OBJECT_PATH_BASE,
+ account_id, NULL);
+
+ g_free (account_id);
+ }
+
account = tp_simple_client_factory_ensure_account (factory,
context.account_path, NULL, &error);
if (account == NULL)