Mercurial > pidgin
diff libpurple/protocols/yahoo/yahoochat.c @ 24171:b5210bb72273
Only send a yahoo ping once an hour. The server doesn't like it when send it
every 30 seconds.
We also send a keepalive every 60 seconds or so like the native client does.
I think this fixes #7161
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Tue, 23 Sep 2008 02:50:36 +0000 |
parents | caa533b62902 |
children | f10aba5592c6 16734635febf |
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoochat.c Mon Sep 22 05:30:16 2008 +0000 +++ b/libpurple/protocols/yahoo/yahoochat.c Tue Sep 23 02:50:36 2008 +0000 @@ -369,7 +369,7 @@ struct yahoo_data *yd = (struct yahoo_data *) gc->proto_data; if (pkt->status == 1) { - yd->chat_online = 1; + yd->chat_online = TRUE; /* We need to goto a user in chat */ if (yd->pending_chat_goto) { @@ -411,7 +411,7 @@ } if (pkt->status == 1) { - yd->chat_online = 0; + yd->chat_online = FALSE; g_free(yd->pending_chat_room); yd->pending_chat_room = NULL; g_free(yd->pending_chat_id); @@ -881,7 +881,7 @@ yahoo_packet_hash_str(pkt, 1, dn); yahoo_packet_send_and_free(pkt, yd); - yd->chat_online = 0; + yd->chat_online = FALSE; g_free(yd->pending_chat_room); yd->pending_chat_room = NULL; g_free(yd->pending_chat_id);