Mercurial > pidgin.yaz
changeset 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 | 953906bcd2ec |
children | bd18c02bba9f |
files | libpurple/protocols/yahoo/yahoo.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo.c Wed Aug 22 22:52:41 2007 +0000 +++ b/libpurple/protocols/yahoo/yahoo.c Wed Aug 22 23:16:28 2007 +0000 @@ -773,7 +773,13 @@ if (bud) yahoo_update_status(gc, from, f); } + } else if (!g_ascii_strncasecmp(msg, "WEBCAMINVITE", strlen("WEBCAMINVITE"))) { + PurpleConversation *conv = purple_find_conversation_with_account(PURPLE_CONV_TYPE_IM, from, gc->account); + char *buf = g_strdup_printf(_("%s has sent you a webcam invite, which is not yet supported."), from); + purple_conversation_write(conv, NULL, buf, PURPLE_MESSAGE_SYSTEM|PURPLE_MESSAGE_NOTIFY, time(NULL)); + g_free(buf); } + }