| 808 } |
808 } |
| 809 |
809 |
| 810 if (!msg || !g_utf8_validate(msg, -1, NULL)) |
810 if (!msg || !g_utf8_validate(msg, -1, NULL)) |
| 811 return; |
811 return; |
| 812 |
812 |
| |
813 /* TODO: Does this really need to be escaped? It seems like it doesn't. */ |
| 813 escmsg = g_markup_escape_text(msg, -1); |
814 escmsg = g_markup_escape_text(msg, -1); |
| 814 |
815 |
| 815 prim = g_strdup_printf(_("Yahoo! system message for %s:"), |
816 prim = g_strdup_printf(_("Yahoo! system message for %s:"), |
| 816 me?me:gaim_connection_get_display_name(gc)); |
817 me?me:gaim_connection_get_display_name(gc)); |
| 817 gaim_notify_info(NULL, NULL, prim, escmsg); |
818 gaim_notify_info(NULL, NULL, prim, escmsg); |
| 2130 yahoo_process_picture_checksum(gc, pkt); |
2131 yahoo_process_picture_checksum(gc, pkt); |
| 2131 break; |
2132 break; |
| 2132 case YAHOO_SERVICE_PICTURE_UPLOAD: |
2133 case YAHOO_SERVICE_PICTURE_UPLOAD: |
| 2133 yahoo_process_picture_upload(gc, pkt); |
2134 yahoo_process_picture_upload(gc, pkt); |
| 2134 break; |
2135 break; |
| |
2136 case YAHOO_SERVICE_AVATAR_UPDATE: |
| |
2137 yahoo_process_avatar_update(gc, pkt); |
| |
2138 break; |
| 2135 case YAHOO_SERVICE_AUDIBLE: |
2139 case YAHOO_SERVICE_AUDIBLE: |
| 2136 yahoo_process_audible(gc, pkt); |
2140 yahoo_process_audible(gc, pkt); |
| 2137 break; |
2141 break; |
| 2138 default: |
2142 default: |
| 2139 gaim_debug(GAIM_DEBUG_ERROR, "yahoo", |
2143 gaim_debug(GAIM_DEBUG_ERROR, "yahoo", |