diff src/dialogs.c @ 470:4bf9c74b9e4d

[gaim-migrate @ 480] small fixes committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sun, 09 Jul 2000 05:31:47 +0000
parents 04f4ed4e34fc
children 4d0b703a094c
line wrap: on
line diff
--- a/src/dialogs.c	Sat Jul 08 09:21:39 2000 +0000
+++ b/src/dialogs.c	Sun Jul 09 05:31:47 2000 +0000
@@ -2740,9 +2740,9 @@
 	}
 
 	/* stick it on the away list */
-	if (strlen(b->name)) {
-		do_away_message(NULL, b);
-        }
+	if (!strlen(b->name))
+		g_snprintf(b->name, sizeof(b->name), "I'm away!");
+	do_away_message(NULL, b);
         
         destroy_dialog(NULL, ca->window);
 }