# HG changeset patch # User Eric Warmenhoven # Date 984268793 0 # Node ID 12f16a8525407302a876b3fc4c7bfc886a0cff64 # Parent 9fe7b059d2a5f5ae7741e8c95f8f7618ef1b724f [gaim-migrate @ 1572] bounce committer: Tailor Script diff -r 9fe7b059d2a5 -r 12f16a852540 ChangeLog --- a/ChangeLog Sat Mar 10 23:12:20 2001 +0000 +++ b/ChangeLog Sat Mar 10 23:59:53 2001 +0000 @@ -3,6 +3,7 @@ version 0.11.0-pre7: * Can build RPMs as non-root * New yahoo library + * Command-line arg to specify config file version 0.11.0-pre6 (03/06/2001): * Fixed bug with NAS support diff -r 9fe7b059d2a5 -r 12f16a852540 plugins/yay/internal.h --- a/plugins/yay/internal.h Sat Mar 10 23:12:20 2001 +0000 +++ b/plugins/yay/internal.h Sat Mar 10 23:59:53 2001 +0000 @@ -65,6 +65,7 @@ #define YAHOO_SERVICE_PING 18 #define YAHOO_MESSAGE_NORMAL 1 +#define YAHOO_MESSAGE_BOUNCE 2 void yahoo_storeint(guchar *, guint); int yahoo_makeint(guchar *); diff -r 9fe7b059d2a5 -r 12f16a852540 plugins/yay/rxhandlers.c --- a/plugins/yay/rxhandlers.c Sat Mar 10 23:12:20 2001 +0000 +++ b/plugins/yay/rxhandlers.c Sat Mar 10 23:59:53 2001 +0000 @@ -168,6 +168,9 @@ CALLBACK(sess, YAHOO_HANDLE_MESSAGE, pkt->nick2, str_array[0], str_array[1]); g_strfreev(str_array); break; + case YAHOO_MESSAGE_BOUNCE: + CALLBACK(sess, YAHOO_HANDLE_BOUNCE); + break; default: g_snprintf(buf, sizeof(buf), "unhandled message type %d: %s", type, pkt->content); YAHOO_PRINT(sess, YAHOO_LOG_WARNING, buf); diff -r 9fe7b059d2a5 -r 12f16a852540 plugins/yay/yay.c --- a/plugins/yay/yay.c Sat Mar 10 23:12:20 2001 +0000 +++ b/plugins/yay/yay.c Sat Mar 10 23:59:53 2001 +0000 @@ -147,6 +147,12 @@ return 1; } +static int yahoo_bounce(struct yahoo_session *sess, ...) { + do_error_dialog(_("Your message did not get sent."), _("Gaim - Error")); + + return 1; +} + static void des_win(GtkWidget *w, struct yahoo_data *yd) { gtk_widget_destroy(yd->email_win); if (yd->email_win == w) @@ -336,6 +342,7 @@ yahoo_add_handler(yd->sess, YAHOO_HANDLE_ONLINE, yahoo_online); yahoo_add_handler(yd->sess, YAHOO_HANDLE_NEWMAIL, yahoo_newmail); yahoo_add_handler(yd->sess, YAHOO_HANDLE_MESSAGE, yahoo_message); + yahoo_add_handler(yd->sess, YAHOO_HANDLE_BOUNCE, yahoo_bounce); yahoo_add_handler(yd->sess, YAHOO_HANDLE_STATUS, yahoo_status); } diff -r 9fe7b059d2a5 -r 12f16a852540 plugins/yay/yay.h --- a/plugins/yay/yay.h Sat Mar 10 23:12:20 2001 +0000 +++ b/plugins/yay/yay.h Sat Mar 10 23:59:53 2001 +0000 @@ -100,9 +100,10 @@ #define YAHOO_HANDLE_ONLINE 5 #define YAHOO_HANDLE_NEWMAIL 6 #define YAHOO_HANDLE_MESSAGE 7 -#define YAHOO_HANDLE_STATUS 8 -#define YAHOO_HANDLE_ACTIVATE 9 -#define YAHOO_HANDLE_MAX 10 +#define YAHOO_HANDLE_BOUNCE 8 +#define YAHOO_HANDLE_STATUS 9 +#define YAHOO_HANDLE_ACTIVATE 10 +#define YAHOO_HANDLE_MAX 11 struct callback { yahoo_callback function;