changeset 21793:f215729af7a7

Save the normalized account name for pounces and custom statuses. References #2049.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Thu, 06 Dec 2007 09:54:04 +0000
parents f5d8acf1c5f4
children 8f82dc5e0b76
files libpurple/pounce.c libpurple/savedstatuses.c
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/pounce.c	Thu Dec 06 09:52:58 2007 +0000
+++ b/libpurple/pounce.c	Thu Dec 06 09:54:04 2007 +0000
@@ -181,7 +181,8 @@
 
 	child = xmlnode_new_child(node, "account");
 	xmlnode_set_attrib(child, "protocol", pouncer->protocol_id);
-	xmlnode_insert_data(child, purple_account_get_username(pouncer), -1);
+	xmlnode_insert_data(child,
+			purple_normalize(pouncer, purple_account_get_username(pouncer)), -1);
 
 	child = xmlnode_new_child(node, "pouncee");
 	xmlnode_insert_data(child, purple_pounce_get_pouncee(pounce), -1);
--- a/libpurple/savedstatuses.c	Thu Dec 06 09:52:58 2007 +0000
+++ b/libpurple/savedstatuses.c	Thu Dec 06 09:54:04 2007 +0000
@@ -243,7 +243,9 @@
 
 	child = xmlnode_new_child(node, "account");
 	xmlnode_set_attrib(child, "protocol", purple_account_get_protocol_id(substatus->account));
-	xmlnode_insert_data(child, purple_account_get_username(substatus->account), -1);
+	xmlnode_insert_data(child,
+			purple_normalize(substatus->account,
+				purple_account_get_username(substatus->account)), -1);
 
 	child = xmlnode_new_child(node, "state");
 	xmlnode_insert_data(child, purple_status_type_get_id(substatus->type), -1);