comparison src/protocols/zephyr/zephyr.c @ 8449:4ae3eb203615

[gaim-migrate @ 9179] aatharuv is the man: marv requests, he delivers. in this case is html entity handling that marv's previous patch suggested would require work in zepher. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Mon, 15 Mar 2004 05:20:37 +0000
parents 6bd8bc8f07bb
children 6b7b5b10cd8a
comparison
equal deleted inserted replaced
8448:ebb160ec42af 8449:4ae3eb203615
405 char *ptr = notice.z_message + strlen(notice.z_message) + 1; 405 char *ptr = notice.z_message + strlen(notice.z_message) + 1;
406 int len = notice.z_message_len - ((int)ptr - (int)notice.z_message); 406 int len = notice.z_message_len - ((int)ptr - (int)notice.z_message);
407 char *sendertmp = g_strdup_printf("%s",gaim_zephyr_get_sender()); 407 char *sendertmp = g_strdup_printf("%s",gaim_zephyr_get_sender());
408 GaimConvImFlags flags = 0; 408 GaimConvImFlags flags = 0;
409 if (len > 0) { 409 if (len > 0) {
410 gchar* tmpescape;
410 buf = g_malloc(len + 1); 411 buf = g_malloc(len + 1);
411 g_snprintf(buf, len + 1, "%s", ptr); 412 g_snprintf(buf, len + 1, "%s", ptr);
412 g_strchomp(buf); 413 g_strchomp(buf);
413 buf2 = zephyr_to_html(buf); 414 tmpescape = gaim_escape_html(buf);
415 buf2 = zephyr_to_html(tmpescape);
414 g_free(buf); 416 g_free(buf);
417 g_free(tmpescape);
415 if (!g_ascii_strcasecmp(notice.z_class, "MESSAGE") && 418 if (!g_ascii_strcasecmp(notice.z_class, "MESSAGE") &&
416 !g_ascii_strcasecmp(notice.z_class_inst, "PERSONAL")) { 419 !g_ascii_strcasecmp(notice.z_class_inst, "PERSONAL")) {
417 if (!g_ascii_strcasecmp(notice.z_message, "Automated reply:")) 420 if (!g_ascii_strcasecmp(notice.z_message, "Automated reply:"))
418 flags |= GAIM_CONV_IM_AUTO_RESP; 421 flags |= GAIM_CONV_IM_AUTO_RESP;
419 serv_got_im(zgc, notice.z_sender, buf2, flags, time(NULL)); 422 serv_got_im(zgc, notice.z_sender, buf2, flags, time(NULL));