comparison libpurple/protocols/novell/nmuser.c @ 15823:32c366eeeb99

sed -ie 's/gaim/purple/g'
author Sean Egan <seanegan@gmail.com>
date Mon, 19 Mar 2007 07:01:17 +0000
parents e926951e61fe
children f6dd1f7689ee
comparison
equal deleted inserted replaced
15822:84b0f9b23ede 15823:32c366eeeb99
475 if (strlen(text) > NM_MAX_MESSAGE_SIZE) 475 if (strlen(text) > NM_MAX_MESSAGE_SIZE)
476 text[NM_MAX_MESSAGE_SIZE] = 0; 476 text[NM_MAX_MESSAGE_SIZE] = 0;
477 477
478 rtfized = nm_rtfize_text(text); 478 rtfized = nm_rtfize_text(text);
479 479
480 gaim_debug_info("novell", "message text is: %s\n", text); 480 purple_debug_info("novell", "message text is: %s\n", text);
481 gaim_debug_info("novell", "message rtf is: %s\n", rtfized); 481 purple_debug_info("novell", "message rtf is: %s\n", rtfized);
482 482
483 tmp = nm_field_add_pointer(tmp, NM_A_SZ_MESSAGE_BODY, 0, NMFIELD_METHOD_VALID, 0, 483 tmp = nm_field_add_pointer(tmp, NM_A_SZ_MESSAGE_BODY, 0, NMFIELD_METHOD_VALID, 0,
484 rtfized, NMFIELD_TYPE_UTF8); 484 rtfized, NMFIELD_TYPE_UTF8);
485 485
486 tmp = nm_field_add_number(tmp, NM_A_UD_MESSAGE_TYPE, 0, NMFIELD_METHOD_VALID, 0, 486 tmp = nm_field_add_number(tmp, NM_A_UD_MESSAGE_TYPE, 0, NMFIELD_METHOD_VALID, 0,
1747 } else if (strcmp("updateblocks", cmd) == 0) { 1747 } else if (strcmp("updateblocks", cmd) == 0) {
1748 /* nothing to do here */ 1748 /* nothing to do here */
1749 } else { 1749 } else {
1750 1750
1751 /* Nothing to do, just print debug message */ 1751 /* Nothing to do, just print debug message */
1752 gaim_debug(GAIM_DEBUG_INFO, "novell", 1752 purple_debug(PURPLE_DEBUG_INFO, "novell",
1753 "nm_call_handler(): Unknown request command, %s\n", cmd); 1753 "nm_call_handler(): Unknown request command, %s\n", cmd);
1754 1754
1755 } 1755 }
1756 } 1756 }
1757 1757
2132 ((((gunichar)pch[4]) & 0x003F) << 6) | 2132 ((((gunichar)pch[4]) & 0x003F) << 6) |
2133 (((gunichar)pch[5]) & 0x003F); 2133 (((gunichar)pch[5]) & 0x003F);
2134 bytes = 6; 2134 bytes = 6;
2135 } else { 2135 } else {
2136 /* should never happen ... bogus utf-8! */ 2136 /* should never happen ... bogus utf-8! */
2137 gaim_debug_info("novell", "bogus utf-8 lead byte: 0x%X\n", pch[0]); 2137 purple_debug_info("novell", "bogus utf-8 lead byte: 0x%X\n", pch[0]);
2138 uc = 0x003F; 2138 uc = 0x003F;
2139 bytes = 1; 2139 bytes = 1;
2140 } 2140 }
2141 uni_str = g_strdup_printf("\\u%d?", uc); 2141 uni_str = g_strdup_printf("\\u%d?", uc);
2142 gaim_debug_info("novell", "unicode escaped char %s\n", uni_str); 2142 purple_debug_info("novell", "unicode escaped char %s\n", uni_str);
2143 gstr = g_string_append(gstr, uni_str); 2143 gstr = g_string_append(gstr, uni_str);
2144 pch += bytes; 2144 pch += bytes;
2145 g_free(uni_str); 2145 g_free(uni_str);
2146 } 2146 }
2147 } 2147 }