# HG changeset patch # User Mark Doliner # Date 1131083137 0 # Node ID 498a1b29fb11524d012f3c99ae00768f73621c72 # Parent 53d8536c82f623d0c32496e9a5fffd974300321c [gaim-migrate @ 14262] If you don't specify an away message on Yahoo!, default to using "Away" committer: Tailor Script diff -r 53d8536c82f6 -r 498a1b29fb11 src/protocols/yahoo/yahoo.c --- a/src/protocols/yahoo/yahoo.c Fri Nov 04 05:30:51 2005 +0000 +++ b/src/protocols/yahoo/yahoo.c Fri Nov 04 05:45:37 2005 +0000 @@ -3127,9 +3127,9 @@ if (yd->current_status == YAHOO_STATUS_CUSTOM) { const char *msg = gaim_status_get_attr_string(status, "message"); - if (msg == NULL) { - gaim_debug_info("yahoo", "Attempted to set a NULL status message.\n"); - msg = ""; + if ((msg == NULL) || (*msg == '\0')) { + gaim_debug_info("yahoo", "Attempted to set an empty status message, using a default string.\n"); + msg = _("Away"); } conv_msg = yahoo_string_encode(gc, msg, NULL);