telepathy-haze: Adjust for Sametime accounts getting a "usersplit" in libpurple 2.10.1
Simon McVittie
smcv at kemper.freedesktop.org
Wed Aug 7 11:16:06 PDT 2013
Module: telepathy-haze
Branch: master
Commit: 279e80ef46d95ae7dec00e375b5001abfe7b5d7a
URL: http://cgit.freedesktop.org/telepathy/telepathy-haze/commit/?id=279e80ef46d95ae7dec00e375b5001abfe7b5d7a
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Thu Jun 27 12:10:11 2013 +0100
Adjust for Sametime accounts getting a "usersplit" in libpurple 2.10.1
Previously, Sametime accounts had separate 'account' and 'server'
parameters. Upgrading to libpurple 2.10.1 caused them to have
a single 'account' parameter with syntax like "username:server",
flagged as being split at ":" - to keep existing accounts working,
we want to separate them again, like we do for IRC.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=44631
Tested-by: Simone Caronni
Signed-off-by: Simon McVittie <simon.mcvittie at collabora.co.uk>
---
src/protocol.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/protocol.c b/src/protocol.c
index 639e25e..cd8593a 100644
--- a/src/protocol.c
+++ b/src/protocol.c
@@ -88,6 +88,11 @@ static const HazeParameterMapping irc_mappings[] = {
{ NULL, NULL }
};
+static const HazeParameterMapping sametime_mappings[] = {
+ { "usersplit1", "server" },
+ { NULL, NULL }
+};
+
static const HazeParameterMapping jabber_mappings[] = {
{ "connect_server", "server" },
/* usersplit1 => domain is deliberately not in this map, because
@@ -200,7 +205,7 @@ static const KnownProtocolInfo known_protocol_info[] = {
{ "local-xmpp", "prpl-bonjour", bonjour_mappings, "" /* ? */ },
{ "msn", "prpl-msn", NULL, "x-msn" },
{ "qq", "prpl-qq", NULL, "x-qq" /* ? */ },
- { "sametime", "prpl-meanwhile", NULL, "x-sametime" /* ? */ },
+ { "sametime", "prpl-meanwhile", sametime_mappings, "x-sametime" /* ? */ },
{ "sipe", "prpl-sipe", sipe_mappings, "" /* ? */ },
{ "yahoo", "prpl-yahoo", yahoo_mappings, "x-yahoo" },
{ "yahoojp", "prpl-yahoojp", yahoo_mappings, "x-yahoo" /* ? */ },
More information about the telepathy-commits
mailing list