diff libpurple/pounce.c @ 15421:6d8728fd3dda

Make sure the pounces, buddy-aliases, savedstatuses etc. saved before the aim/icq split works after the split. The util function _gaim_oscar_convert will be removed at a 'suitable' time in the future.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 26 Jan 2007 04:10:22 +0000
parents 5fe8042783c1
children 32c366eeeb99
line wrap: on
line diff
--- a/libpurple/pounce.c	Fri Jan 26 03:53:15 2007 +0000
+++ b/libpurple/pounce.c	Fri Jan 26 04:10:22 2007 +0000
@@ -403,8 +403,12 @@
 	}
 
 	if (!strcmp(element_name, "account")) {
+		char *tmp;
 		g_free(data->account_name);
 		data->account_name = g_strdup(buffer);
+		tmp = data->protocol_id;
+		data->protocol_id = g_strdup(_gaim_oscar_convert(buffer, tmp));
+		g_free(tmp);
 	}
 	else if (!strcmp(element_name, "pouncee")) {
 		g_free(data->pouncee);