Mercurial > pidgin
comparison src/server.c @ 12272:3ef381cdc47e
[gaim-migrate @ 14574]
This should fix idle time reporting for all accounts. Previously it would
only work for one account because I'm dumb.
We're also doing one idleness check every 5 seconds instead of checking
for each account every 20 seconds.
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Wed, 30 Nov 2005 06:03:49 +0000 |
| parents | 4d3119205a33 |
| children | 970fec1d7062 |
comparison
equal
deleted
inserted
replaced
| 12271:3c6675e1400e | 12272:3ef381cdc47e |
|---|---|
| 131 conv = gaim_find_conversation_with_account(GAIM_CONV_TYPE_IM, name, gc->account); | 131 conv = gaim_find_conversation_with_account(GAIM_CONV_TYPE_IM, name, gc->account); |
| 132 | 132 |
| 133 if (prpl_info && prpl_info->send_im) | 133 if (prpl_info && prpl_info->send_im) |
| 134 val = prpl_info->send_im(gc, name, message, flags); | 134 val = prpl_info->send_im(gc, name, message, flags); |
| 135 | 135 |
| 136 /* Only update the last_sent_time if the user actually sent the message */ | |
| 137 if (!(flags & GAIM_MESSAGE_AUTO_RESP)) | |
| 138 time(&gc->last_sent_time); | |
| 139 | |
| 140 /* | 136 /* |
| 141 * XXX - If "only auto-reply when away & idle" is set, then shouldn't | 137 * XXX - If "only auto-reply when away & idle" is set, then shouldn't |
| 142 * this only reset lar->sent if we're away AND idle? | 138 * this only reset lar->sent if we're away AND idle? |
| 143 */ | 139 */ |
| 144 auto_reply_pref = gaim_prefs_get_string("/core/away/auto_reply"); | 140 auto_reply_pref = gaim_prefs_get_string("/core/away/auto_reply"); |
| 408 if (gc->prpl != NULL) | 404 if (gc->prpl != NULL) |
| 409 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); | 405 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); |
| 410 | 406 |
| 411 if (prpl_info && prpl_info->chat_send) | 407 if (prpl_info && prpl_info->chat_send) |
| 412 val = prpl_info->chat_send(gc, id, message, flags); | 408 val = prpl_info->chat_send(gc, id, message, flags); |
| 413 | |
| 414 time(&gc->last_sent_time); | |
| 415 | 409 |
| 416 return val; | 410 return val; |
| 417 } | 411 } |
| 418 | 412 |
| 419 void serv_set_buddyicon(GaimConnection *gc, const char *filename) | 413 void serv_set_buddyicon(GaimConnection *gc, const char *filename) |
