cpw.darkrain42.obsolete: 29e40b40: Remove a superfluous variable.

darkrain42 at pidgin.im darkrain42 at pidgin.im
Sun Jul 12 01:55:45 EDT 2009


-----------------------------------------------------------------
Revision: 29e40b402901ac468a396f7cdf98f0b983f2c768
Ancestor: b4aeecbd4d132170eaff2a7c16a3db58d2732abb
Author: darkrain42 at pidgin.im
Date: 2009-07-12T05:14:32
Branch: im.pidgin.cpw.darkrain42.obsolete
URL: http://d.pidgin.im/viewmtn/revision/info/29e40b402901ac468a396f7cdf98f0b983f2c768

Modified files:
        libpurple/protocols/jabber/message.c

ChangeLog: 

Remove a superfluous variable.

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/message.c	7008e6091cdb1da636855838a1c4eb8881549367
+++ libpurple/protocols/jabber/message.c	ee7b37d408aa8b624eb49ea4ad9cb81937766432
@@ -622,7 +622,6 @@ void jabber_message_parse(JabberStream *
 				char *c;
 
 				const PurpleConnection *gc = js->gc;
-				const gchar *who = xmlnode_get_attrib(packet, "from");
 				PurpleAccount *account = purple_connection_get_account(gc);
 				PurpleConversation *conv = NULL;
 				GList *smiley_refs = NULL;
@@ -650,12 +649,12 @@ void jabber_message_parse(JabberStream *
 						           jm->type == JABBER_MESSAGE_CHAT) {
 							conv =
 								purple_find_conversation_with_account(PURPLE_CONV_TYPE_ANY,
-									who, account);
+									from, account);
 							if (!conv) {
 								/* we need to create the conversation here */
 								conv =
 									purple_conversation_new(PURPLE_CONV_TYPE_IM,
-									account, who);
+									account, from);
 							}
 						}
 					}
@@ -700,7 +699,7 @@ void jabber_message_parse(JabberStream *
 							/* we need to request the smiley (data) */
 							purple_debug_info("jabber",
 								"data is unknown, need to request it\n");
-							jabber_message_send_data_request(js, conv, cid, who,
+							jabber_message_send_data_request(js, conv, cid, from,
 								alt);
 						}
 					}


More information about the Commits mailing list