diff 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
line wrap: on
line diff
--- 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);