diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2010-07-15 15:14:49 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2010-07-15 16:22:17 +0100 |
commit | 284e46dbf3c04753599064f03f192774abdc0236 (patch) | |
tree | b76ec085d2b36c47aaa6cea7aeeee06d3276e967 /src/protocol.c | |
parent | d4a2b72cfe1e874af0130652e371ab7d68a7cfbf (diff) | |
download | telepathy-haze-284e46dbf3c04753599064f03f192774abdc0236.tar.gz |
Expose IRC's usersplit as a separate CM parameter
Diffstat (limited to 'src/protocol.c')
-rw-r--r-- | src/protocol.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/protocol.c b/src/protocol.c index 04f001d..9e2f180 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -73,6 +73,12 @@ static const HazeParameterMapping encoding_to_charset[] = { { NULL, NULL } }; +static const HazeParameterMapping irc_mappings[] = { + { "encoding", "charset" }, + { "usersplit1", "server" }, + { NULL, NULL } +}; + static const HazeParameterMapping jabber_mappings[] = { { "connect_server", "server" }, /* usersplit1 => domain is deliberately not in this map, because @@ -105,7 +111,7 @@ static const KnownProtocolInfo known_protocol_info[] = { { "facebook", "prpl-bigbrownchunx-facebookim", NULL, "" }, { "gadugadu", "prpl-gg", NULL, "x-gadugadu" }, { "groupwise", "prpl-novell", NULL, "x-groupwise" }, - { "irc", "prpl-irc", encoding_to_charset, "x-irc" /* ? */ }, + { "irc", "prpl-irc", irc_mappings, "x-irc" /* ? */ }, { "icq", "prpl-icq", encoding_to_charset, "x-icq" }, { "jabber", "prpl-jabber", jabber_mappings, "x-jabber" }, { "local-xmpp", "prpl-bonjour", bonjour_mappings, "" /* ? */ }, |