Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/message.c @ 25467:be098f796b32
yaz patch has been applied.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Wed, 25 Apr 2007 07:57:26 +0000 |
parents | 26593bef6568 |
children | 096330f964b6 |
comparison
equal
deleted
inserted
replaced
25466:46a28577399d | 25467:be098f796b32 |
---|---|
319 } else if(!strcmp(child->name, "thread")) { | 319 } else if(!strcmp(child->name, "thread")) { |
320 if(!jm->thread_id) | 320 if(!jm->thread_id) |
321 jm->thread_id = xmlnode_get_data(child); | 321 jm->thread_id = xmlnode_get_data(child); |
322 } else if(!strcmp(child->name, "body")) { | 322 } else if(!strcmp(child->name, "body")) { |
323 if(!jm->body) { | 323 if(!jm->body) { |
324 char *msg = xmlnode_to_str(child, NULL); | 324 char *tmp, *msg; |
325 int len; | |
326 tmp = xmlnode_to_str(child, NULL); | |
327 msg = sanitize_utf(tmp, strlen(tmp), &len); | |
325 jm->body = purple_strdup_withhtml(msg); | 328 jm->body = purple_strdup_withhtml(msg); |
326 g_free(msg); | 329 g_free(msg); g_free(tmp); |
327 } | 330 } |
328 } else if(!strcmp(child->name, "html")) { | 331 } else if(!strcmp(child->name, "html")) { |
329 if(!jm->xhtml && xmlnode_get_child(child, "body")) | 332 if(!jm->xhtml && xmlnode_get_child(child, "body")){ |
330 jm->xhtml = xmlnode_to_str(child, NULL); | 333 char *tmp, *msg; |
334 int len; | |
335 tmp = xmlnode_to_str(child, NULL); | |
336 msg = sanitize_utf(tmp, strlen(tmp), &len); | |
337 jm->xhtml = msg; | |
338 g_free(tmp); | |
339 } | |
331 } else if(!strcmp(child->name, "active")) { | 340 } else if(!strcmp(child->name, "active")) { |
332 jm->chat_state = JM_STATE_ACTIVE; | 341 jm->chat_state = JM_STATE_ACTIVE; |
333 jm->typing_style |= JM_TS_JEP_0085; | 342 jm->typing_style |= JM_TS_JEP_0085; |
334 } else if(!strcmp(child->name, "composing")) { | 343 } else if(!strcmp(child->name, "composing")) { |
335 jm->chat_state = JM_STATE_COMPOSING; | 344 jm->chat_state = JM_STATE_COMPOSING; |