| 2839 |
2839 |
| 2840 pkt = yahoo_packet_new(YAHOO_SERVICE_Y6_STATUS_UPDATE, YAHOO_STATUS_AVAILABLE, 0); |
2840 pkt = yahoo_packet_new(YAHOO_SERVICE_Y6_STATUS_UPDATE, YAHOO_STATUS_AVAILABLE, 0); |
| 2841 |
2841 |
| 2842 yahoo_packet_hash_int(pkt, 10, yd->current_status); |
2842 yahoo_packet_hash_int(pkt, 10, yd->current_status); |
| 2843 if (yd->current_status == YAHOO_STATUS_CUSTOM) { |
2843 if (yd->current_status == YAHOO_STATUS_CUSTOM) { |
| |
2844 const char *tmp; |
| 2844 GaimStatus *status = gaim_presence_get_active_status(gaim_account_get_presence(gaim_connection_get_account(gc))); |
2845 GaimStatus *status = gaim_presence_get_active_status(gaim_account_get_presence(gaim_connection_get_account(gc))); |
| 2845 msg = yahoo_string_encode(gc, gaim_status_get_attr_string(status, "message"), NULL); //this line crashes, fix it |
2846 tmp = gaim_status_get_attr_string(status, "message"); |
| 2846 msg2 = gaim_unescape_html(msg); |
2847 if (tmp != NULL) { |
| 2847 yahoo_packet_hash_str(pkt, 19, msg2); |
2848 msg = yahoo_string_encode(gc, tmp, NULL); |
| |
2849 msg2 = gaim_unescape_html(msg); |
| |
2850 yahoo_packet_hash_str(pkt, 19, msg2); |
| |
2851 } else { |
| |
2852 yahoo_packet_hash_str(pkt, 19, ""); |
| |
2853 } |
| 2848 } else { |
2854 } else { |
| 2849 yahoo_packet_hash_str(pkt, 19, ""); |
2855 yahoo_packet_hash_str(pkt, 19, ""); |
| 2850 } |
2856 } |
| 2851 |
2857 |
| 2852 if (idle) |
2858 if (idle) |