Mercurial > pidgin
diff src/protocols/yahoo/yahoo.c @ 11506:88d504770c60
[gaim-migrate @ 13751]
Fix some C99isms in the whiteboard code. Hopefully I didn't break anything.
committer: Tailor Script <tailor@pidgin.im>
| author | Richard Laager <rlaager@wiktel.com> |
|---|---|
| date | Sun, 11 Sep 2005 05:37:31 +0000 |
| parents | 7fab28c991f3 |
| children | a26eb48d1953 |
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo.c Sun Sep 11 05:19:46 2005 +0000 +++ b/src/protocols/yahoo/yahoo.c Sun Sep 11 05:37:31 2005 +0000 @@ -705,9 +705,11 @@ // Check for the Doodle IMV if( !strcmp( imv, "doodle;11" ) ) { + GaimWhiteboard *wb; + g_print( "'doodle;11' found in chat packet\n" ); - GaimWhiteboard *wb = gaim_whiteboard_get_session( gc->account, im->from ); + wb = gaim_whiteboard_get_session( gc->account, im->from ); // If a Doodle session doesn't exist between this user if( wb == NULL ) @@ -2982,6 +2984,7 @@ char *msg = yahoo_html_to_codes(what); char *msg2; gboolean utf8 = TRUE; + GaimWhiteboard *wb; int ret = 1; msg2 = yahoo_string_encode(gc, msg, &utf8); @@ -2993,7 +2996,7 @@ // If this message is to a user who is also Doodling with the local user, // format the chat packet with the correct IMV information (thanks Yahoo!) - GaimWhiteboard *wb = gaim_whiteboard_get_session(gc->account, (char*)who); + wb = gaim_whiteboard_get_session(gc->account, (char*)who); if (wb) yahoo_packet_hash_str(pkt, 63, "doodle;11"); else
