Mercurial > pidgin
changeset 1562:12f16a852540
[gaim-migrate @ 1572]
bounce
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sat, 10 Mar 2001 23:59:53 +0000 |
parents | 9fe7b059d2a5 |
children | 393b23c8f494 |
files | ChangeLog plugins/yay/internal.h plugins/yay/rxhandlers.c plugins/yay/yay.c plugins/yay/yay.h |
diffstat | 5 files changed, 16 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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 *);
--- 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);
--- 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); }
--- 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;