Mercurial > pidgin
comparison libpurple/protocols/jabber/message.c @ 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 | 2f067d8fb19a |
children | 34411cc535de |
comparison
equal
deleted
inserted
replaced
17857:3e437e86bd6e | 17858:d8ce7ff7aeb3 |
---|---|
313 if(!xmlns) | 313 if(!xmlns) |
314 xmlns = ""; | 314 xmlns = ""; |
315 if(child->type != XMLNODE_TYPE_TAG) | 315 if(child->type != XMLNODE_TYPE_TAG) |
316 continue; | 316 continue; |
317 | 317 |
318 if(!strcmp(child->name, "subject") && strlen(xmlns) == 0) { | 318 if(!strcmp(child->name, "subject") && !strcmp(xmlns,"jabber:client")) { |
319 if(!jm->subject) | 319 if(!jm->subject) |
320 jm->subject = xmlnode_get_data(child); | 320 jm->subject = xmlnode_get_data(child); |
321 } else if(!strcmp(child->name, "thread") && strlen(xmlns) == 0) { | 321 } else if(!strcmp(child->name, "thread") && !strcmp(xmlns,"jabber:client")) { |
322 if(!jm->thread_id) | 322 if(!jm->thread_id) |
323 jm->thread_id = xmlnode_get_data(child); | 323 jm->thread_id = xmlnode_get_data(child); |
324 } else if(!strcmp(child->name, "body") && strlen(xmlns) == 0) { | 324 } else if(!strcmp(child->name, "body") && !strcmp(xmlns,"jabber:client")) { |
325 if(!jm->body) { | 325 if(!jm->body) { |
326 char *msg = xmlnode_to_str(child, NULL); | 326 char *msg = xmlnode_to_str(child, NULL); |
327 jm->body = purple_strdup_withhtml(msg); | 327 jm->body = purple_strdup_withhtml(msg); |
328 g_free(msg); | 328 g_free(msg); |
329 } | 329 } |