| 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) |