im.pidgin.pidgin: b3b98e439c48cd619900e0a659b87d34d8476780

sadrul at pidgin.im sadrul at pidgin.im
Thu Dec 6 04:57:31 EST 2007


-----------------------------------------------------------------
Revision: b3b98e439c48cd619900e0a659b87d34d8476780
Ancestor: 4e3739b824113e22a4eca8c142e614065a39c21f
Author: sadrul at pidgin.im
Date: 2007-12-06T09:54:04
Branch: im.pidgin.pidgin

Modified files:
        libpurple/pounce.c libpurple/savedstatuses.c

ChangeLog: 

Save the normalized account name for pounces and custom statuses. References #2049.

-------------- next part --------------
============================================================
--- libpurple/pounce.c	d0750f8226cca76d80e87e6ce2c1ff68a07cd810
+++ libpurple/pounce.c	f233c62325a39c831e318edf257241dd0c5b8125
@@ -181,7 +181,8 @@ pounce_to_xmlnode(PurplePounce *pounce)
 
 	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);
============================================================
--- libpurple/savedstatuses.c	b2e7bfa66d083b7a38026c1dc623662318bb3c3c
+++ libpurple/savedstatuses.c	2854bef9ad835caf41f9153787e74e6394af6fc1
@@ -243,7 +243,9 @@ substatus_to_xmlnode(PurpleSavedStatusSu
 
 	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);


More information about the Commits mailing list