Mercurial > pidgin.yaz
diff libpurple/protocols/yahoo/yahoo_filexfer.c @ 18769:cddf062baa71
Fix yahoo doodling to work with newer yahoo messenger clients. This breaks doodling with older Pidgin clients (trying to support both looked too painful). Fixes #1445.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Wed, 01 Aug 2007 22:38:47 +0000 |
parents | b8572b937c09 |
children | 44b4e8bd759b |
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo_filexfer.c Wed Aug 01 19:09:57 2007 +0000 +++ b/libpurple/protocols/yahoo/yahoo_filexfer.c Wed Aug 01 22:38:47 2007 +0000 @@ -484,7 +484,7 @@ if(service != NULL && imv != NULL && !strcmp(service, "IMVIRONMENT")) { /* Check for a Doodle packet and handle it accordingly */ - if(!strcmp(imv, "doodle;11")) + if(strstr(imv, "doodle;") != NULL) yahoo_doodle_process(gc, me, from, command, message); /* If an IMVIRONMENT packet comes without a specific imviroment name */ @@ -622,12 +622,12 @@ { PurpleXfer *xfer; struct yahoo_xfer_data *xfer_data; - + g_return_val_if_fail(who != NULL, NULL); - + xfer_data = g_new0(struct yahoo_xfer_data, 1); xfer_data->gc = gc; - + /* Build the file transfer handle. */ xfer = purple_xfer_new(gc->account, PURPLE_XFER_SEND, who); if (xfer)