diff libpurple/accountopt.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 32c366eeeb99
children ab6d2763b8d8
line wrap: on
line diff
--- a/libpurple/accountopt.c	Sun Jun 03 23:11:57 2007 +0000
+++ b/libpurple/accountopt.c	Mon Jun 04 04:37:07 2007 +0000
@@ -308,6 +308,7 @@
 	split->text = g_strdup(text);
 	split->field_sep = sep;
 	split->default_value = g_strdup(default_value);
+	split->reverse = TRUE;
 
 	return split;
 }
@@ -345,3 +346,19 @@
 
 	return split->field_sep;
 }
+
+gboolean
+purple_account_user_split_get_reverse(const PurpleAccountUserSplit *split)
+{
+	g_return_val_if_fail(split != NULL, FALSE);
+
+	return split->reverse;
+}
+
+void
+purple_account_user_split_set_reverse(PurpleAccountUserSplit *split, gboolean reverse)
+{
+	g_return_if_fail(split != NULL);
+
+	split->reverse = reverse;
+}