Mercurial > pidgin
comparison libpurple/server.c @ 20063:669c152c0290
Only keep track of sent auto-responses in determining whether to send an auto-response. This will keep people who have had a conversation and then set themselves away from getting confused and thinking it doesn't work
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Sat, 15 Sep 2007 22:43:17 +0000 |
parents | a359452f9ea2 |
children | 7393ee28c819 |
comparison
equal
deleted
inserted
replaced
20062:0c84170f5778 | 20063:669c152c0290 |
---|---|
141 * XXX - If "only auto-reply when away & idle" is set, then shouldn't | 141 * 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? | 142 * this only reset lar->sent if we're away AND idle? |
143 */ | 143 */ |
144 auto_reply_pref = purple_prefs_get_string("/purple/away/auto_reply"); | 144 auto_reply_pref = purple_prefs_get_string("/purple/away/auto_reply"); |
145 if ((gc->flags & PURPLE_CONNECTION_AUTO_RESP) && | 145 if ((gc->flags & PURPLE_CONNECTION_AUTO_RESP) && |
146 flags & PURPLE_MESSAGE_AUTO_RESP && | |
146 !purple_presence_is_available(presence) && | 147 !purple_presence_is_available(presence) && |
147 strcmp(auto_reply_pref, "never")) { | 148 strcmp(auto_reply_pref, "never")) { |
148 | 149 |
149 struct last_auto_response *lar; | 150 struct last_auto_response *lar; |
150 lar = get_last_auto_response(gc, name); | 151 lar = get_last_auto_response(gc, name); |