diff libpurple/protocols/jabber/libxmpp.c @ 18037:e3e42a99070e

jabber can contain @ symbols and / in the resource, so we have to look for the split characters from the beginning of the username I'm not particularly happy with the name 'reverse' for this, but I'm not feeling creative enough at the moment to come up with something better. If someone comes up with something better before 2.1.0, feel free to change it.
author Nathan Walp <nwalp@pidgin.im>
date Mon, 04 Jun 2007 04:37:07 +0000
parents 62a71bb085ef
children 40d51793f2d7
line wrap: on
line diff
--- a/libpurple/protocols/jabber/libxmpp.c	Sun Jun 03 23:11:57 2007 +0000
+++ b/libpurple/protocols/jabber/libxmpp.c	Mon Jun 04 04:37:07 2007 +0000
@@ -195,9 +195,11 @@
 
 	/* Translators: 'domain' is used here in the context of Internet domains, e.g. pidgin.im */
         split = purple_account_user_split_new(_("Domain"), NULL, '@');
+		purple_account_user_split_set_reverse(split, FALSE);
         prpl_info.user_splits = g_list_append(prpl_info.user_splits, split);
 
         split = purple_account_user_split_new(_("Resource"), "Home", '/');
+		purple_account_user_split_set_reverse(split, FALSE);
         prpl_info.user_splits = g_list_append(prpl_info.user_splits, split);
 
         option = purple_account_option_bool_new(_("Force old (port 5223) SSL"), "old_ssl", FALSE);