Mercurial > pidgin
changeset 17858:d8ce7ff7aeb3
Fixed a bug that resulted in not being able to receive any messages.
author | Andreas Monitzer <pidgin@monitzer.com> |
---|---|
date | Sun, 17 Jun 2007 21:04:15 +0000 |
parents | 3e437e86bd6e |
children | beaeb7fb4dbd |
files | libpurple/protocols/jabber/message.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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);