# HG changeset patch # User Andreas Monitzer # Date 1182114255 0 # Node ID d8ce7ff7aeb3904bf7aced6ca56b140726113b38 # Parent 3e437e86bd6e7613340acc1dcef7dc778ef28b17 Fixed a bug that resulted in not being able to receive any messages. diff -r 3e437e86bd6e -r d8ce7ff7aeb3 libpurple/protocols/jabber/message.c --- a/libpurple/protocols/jabber/message.c Sun Jun 17 20:31:01 2007 +0000 +++ b/libpurple/protocols/jabber/message.c Sun Jun 17 21:04:15 2007 +0000 @@ -315,13 +315,13 @@ if(child->type != XMLNODE_TYPE_TAG) continue; - if(!strcmp(child->name, "subject") && strlen(xmlns) == 0) { + if(!strcmp(child->name, "subject") && !strcmp(xmlns,"jabber:client")) { if(!jm->subject) jm->subject = xmlnode_get_data(child); - } else if(!strcmp(child->name, "thread") && strlen(xmlns) == 0) { + } else if(!strcmp(child->name, "thread") && !strcmp(xmlns,"jabber:client")) { if(!jm->thread_id) jm->thread_id = xmlnode_get_data(child); - } else if(!strcmp(child->name, "body") && strlen(xmlns) == 0) { + } else if(!strcmp(child->name, "body") && !strcmp(xmlns,"jabber:client")) { if(!jm->body) { char *msg = xmlnode_to_str(child, NULL); jm->body = purple_strdup_withhtml(msg);