cpw.darkrain42.obsolete: e151b5d0: --warnings

darkrain42 at pidgin.im darkrain42 at pidgin.im
Fri Jun 12 02:05:59 EDT 2009


-----------------------------------------------------------------
Revision: e151b5d0a3a46d7f502574d1e0ae3200bbf2247e
Ancestor: a383ad6a4ae7e98bbcb32b4193531ccf960eb2bb
Author: darkrain42 at pidgin.im
Date: 2009-06-11T22:34:32
Branch: im.pidgin.cpw.darkrain42.obsolete
URL: http://d.pidgin.im/viewmtn/revision/info/e151b5d0a3a46d7f502574d1e0ae3200bbf2247e

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

ChangeLog: 

--warnings

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/message.c	005fac383641fa420d98c4c8b2f0c43e25525d98
+++ libpurple/protocols/jabber/message.c	c32bcb403ac31c0e106bc332eff46ad196fabb95
@@ -1036,29 +1036,30 @@ void jabber_message_send(JabberMessage *
 		xmlnode_insert_data(child, jm->thread_id, -1);
 	}
 
-	if (jm->chat_state != JM_STATE_NONE) {
-		child = NULL;
-		switch(jm->chat_state)
-		{
-			case JM_STATE_ACTIVE:
-				child = xmlnode_new_child(message, "active");
-				break;
-			case JM_STATE_COMPOSING:
-				child = xmlnode_new_child(message, "composing");
-				break;
-			case JM_STATE_PAUSED:
-				child = xmlnode_new_child(message, "paused");
-				break;
-			case JM_STATE_INACTIVE:
-				child = xmlnode_new_child(message, "inactive");
-				break;
-			case JM_STATE_GONE:
-				child = xmlnode_new_child(message, "gone");
-				break;
-		}
-		if(child)
-			xmlnode_set_namespace(child, "http://jabber.org/protocol/chatstates");
+	child = NULL;
+	switch(jm->chat_state)
+	{
+		case JM_STATE_ACTIVE:
+			child = xmlnode_new_child(message, "active");
+			break;
+		case JM_STATE_COMPOSING:
+			child = xmlnode_new_child(message, "composing");
+			break;
+		case JM_STATE_PAUSED:
+			child = xmlnode_new_child(message, "paused");
+			break;
+		case JM_STATE_INACTIVE:
+			child = xmlnode_new_child(message, "inactive");
+			break;
+		case JM_STATE_GONE:
+			child = xmlnode_new_child(message, "gone");
+			break;
+		case JM_STATE_NONE:
+			/* yep, nothing */
+			break;
 	}
+	if(child)
+		xmlnode_set_namespace(child, "http://jabber.org/protocol/chatstates");
 
 	if(jm->subject) {
 		child = xmlnode_new_child(message, "subject");


More information about the Commits mailing list