comparison 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
comparison
equal deleted inserted replaced
469:7ac742be351d 470:4bf9c74b9e4d
2738 if (pd != NULL) 2738 if (pd != NULL)
2739 gtk_list_select_item(GTK_LIST(pd->away_list), g_list_index(away_messages, b)); 2739 gtk_list_select_item(GTK_LIST(pd->away_list), g_list_index(away_messages, b));
2740 } 2740 }
2741 2741
2742 /* stick it on the away list */ 2742 /* stick it on the away list */
2743 if (strlen(b->name)) { 2743 if (!strlen(b->name))
2744 do_away_message(NULL, b); 2744 g_snprintf(b->name, sizeof(b->name), "I'm away!");
2745 } 2745 do_away_message(NULL, b);
2746 2746
2747 destroy_dialog(NULL, ca->window); 2747 destroy_dialog(NULL, ca->window);
2748 } 2748 }
2749 2749
2750 void create_away_mess(GtkWidget *widget, void *dummy) 2750 void create_away_mess(GtkWidget *widget, void *dummy)