diff libpurple/protocols/jabber/message.c @ 17842:a0cd74d7b51e

forgot to add usermood.[hc]
author Andreas Monitzer <pidgin@monitzer.com>
date Tue, 12 Jun 2007 00:00:53 +0000
parents cac26c30047a
children 2e0799b916b9
line wrap: on
line diff
--- a/libpurple/protocols/jabber/message.c	Mon Jun 11 23:33:39 2007 +0000
+++ b/libpurple/protocols/jabber/message.c	Tue Jun 12 00:00:53 2007 +0000
@@ -306,7 +306,7 @@
 
 	jm->from = g_strdup(xmlnode_get_attrib(packet, "from"));
 	jm->to = g_strdup(xmlnode_get_attrib(packet, "to"));
-	jm->id = g_strdup(xmlnode_get_attrib(packet, "id"));
+    jm->id = g_strdup(xmlnode_get_attrib(packet, "id"));
 
 	for(child = packet->child; child; child = child->next) {
         const char *xmlns = xmlnode_get_namespace(child);
@@ -357,7 +357,7 @@
 		} else if(!strcmp(child->name, "event") && !strcmp(xmlns,"http://jabber.org/protocol/pubsub#event")) {
             xmlnode *items;
             jm->type = JABBER_MESSAGE_EVENT;
-            for(items = child->child; child; child = child->next)
+            for(items = child->child; items; items = items->next)
                 jm->eventitems = g_list_append(jm->eventitems, items);
 		} else if(!strcmp(child->name, "error")) {
 			const char *code = xmlnode_get_attrib(child, "code");