Mercurial > pidgin
comparison src/protocols/yahoo/yahoo.c @ 11969:498a1b29fb11
[gaim-migrate @ 14262]
If you don't specify an away message on Yahoo!, default to using "Away"
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 04 Nov 2005 05:45:37 +0000 |
parents | 52f27ffe68a5 |
children | 8f8b4d1ac26e |
comparison
equal
deleted
inserted
replaced
11968:53d8536c82f6 | 11969:498a1b29fb11 |
---|---|
3125 yahoo_packet_hash_int(pkt, 10, yd->current_status); | 3125 yahoo_packet_hash_int(pkt, 10, yd->current_status); |
3126 | 3126 |
3127 if (yd->current_status == YAHOO_STATUS_CUSTOM) { | 3127 if (yd->current_status == YAHOO_STATUS_CUSTOM) { |
3128 const char *msg = gaim_status_get_attr_string(status, "message"); | 3128 const char *msg = gaim_status_get_attr_string(status, "message"); |
3129 | 3129 |
3130 if (msg == NULL) { | 3130 if ((msg == NULL) || (*msg == '\0')) { |
3131 gaim_debug_info("yahoo", "Attempted to set a NULL status message.\n"); | 3131 gaim_debug_info("yahoo", "Attempted to set an empty status message, using a default string.\n"); |
3132 msg = ""; | 3132 msg = _("Away"); |
3133 } | 3133 } |
3134 | 3134 |
3135 conv_msg = yahoo_string_encode(gc, msg, NULL); | 3135 conv_msg = yahoo_string_encode(gc, msg, NULL); |
3136 conv_msg2 = gaim_markup_strip_html(conv_msg); | 3136 conv_msg2 = gaim_markup_strip_html(conv_msg); |
3137 yahoo_packet_hash_str(pkt, 19, conv_msg2); | 3137 yahoo_packet_hash_str(pkt, 19, conv_msg2); |