# HG changeset patch # User Eric Warmenhoven # Date 985947156 0 # Node ID 55bb0e8705377736ddacec065e00e72aff1b671c # Parent ea5b31cdd438b2b35f735ca323ff88bad4d36568 [gaim-migrate @ 1669] patch from phzzzt to not send auto-response. committer: Tailor Script diff -r ea5b31cdd438 -r 55bb0e870537 src/gaim.h --- a/src/gaim.h Wed Mar 28 03:06:06 2001 +0000 +++ b/src/gaim.h Fri Mar 30 10:12:36 2001 +0000 @@ -459,6 +459,7 @@ #define OPT_GEN_ESC_CAN_CLOSE 0x01000000 #define OPT_GEN_CTL_ENTER 0x02000000 #define OPT_GEN_F2_TOGGLES 0x04000000 +#define OPT_GEN_NO_AUTO_RESP 0x08000000 extern int display_options; #define OPT_DISP_SHOW_TIME 0x00000001 diff -r ea5b31cdd438 -r 55bb0e870537 src/prefs.c --- a/src/prefs.c Wed Mar 28 03:06:06 2001 +0000 +++ b/src/prefs.c Fri Mar 30 10:12:36 2001 +0000 @@ -1502,13 +1502,14 @@ gtk_box_pack_start(GTK_BOX(box), sep, FALSE, FALSE, 0); gtk_widget_show(sep); - hbox = gtk_hbox_new(FALSE, 0); + hbox = gtk_hbox_new(FALSE, 30); gtk_box_pack_start(GTK_BOX(box), hbox, FALSE, FALSE, 0); gtk_widget_show(hbox); - gaim_button(_("Ignore new conversations when away "), &general_options, + gaim_button(_("Ignore new conversations when away"), &general_options, OPT_GEN_DISCARD_WHEN_AWAY, hbox); gaim_button(_("Sounds while away"), &sound_options, OPT_SOUND_WHEN_AWAY, hbox); + gaim_button(_("Don't send auto-response"), &general_options, OPT_GEN_NO_AUTO_RESP, hbox); sep = gtk_hseparator_new(); gtk_box_pack_start(GTK_BOX(box), sep, FALSE, FALSE, 0); diff -r ea5b31cdd438 -r 55bb0e870537 src/server.c --- a/src/server.c Wed Mar 28 03:06:06 2001 +0000 +++ b/src/server.c Fri Mar 30 10:12:36 2001 +0000 @@ -387,7 +387,7 @@ - if (gc->away && strlen(gc->away)) { + if (!(general_options & OPT_GEN_NO_AUTO_RESP) && gc->away && strlen(gc->away)) { time_t t; char *tmpmsg; struct buddy *b = find_buddy(gc, name);