Mercurial > pidgin
comparison libpurple/protocols/yahoo/yahoo.c @ 19365:756dad225d90
Show a system notification in the conv window when receiving Yahoo webcam invites. Fixes #1298
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Wed, 22 Aug 2007 23:16:28 +0000 |
parents | dbc4bdfb09a9 |
children | 35ae010cc037 |
comparison
equal
deleted
inserted
replaced
19364:953906bcd2ec | 19365:756dad225d90 |
---|---|
771 if (*stat == '1') { | 771 if (*stat == '1') { |
772 yahoo_friend_set_game(f, game); | 772 yahoo_friend_set_game(f, game); |
773 if (bud) | 773 if (bud) |
774 yahoo_update_status(gc, from, f); | 774 yahoo_update_status(gc, from, f); |
775 } | 775 } |
776 } | 776 } else if (!g_ascii_strncasecmp(msg, "WEBCAMINVITE", strlen("WEBCAMINVITE"))) { |
777 PurpleConversation *conv = purple_find_conversation_with_account(PURPLE_CONV_TYPE_IM, from, gc->account); | |
778 char *buf = g_strdup_printf(_("%s has sent you a webcam invite, which is not yet supported."), from); | |
779 purple_conversation_write(conv, NULL, buf, PURPLE_MESSAGE_SYSTEM|PURPLE_MESSAGE_NOTIFY, time(NULL)); | |
780 g_free(buf); | |
781 } | |
782 | |
777 } | 783 } |
778 | 784 |
779 | 785 |
780 struct _yahoo_im { | 786 struct _yahoo_im { |
781 char *from; | 787 char *from; |