diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2009-11-19 13:11:38 +0000 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2009-11-19 13:11:38 +0000 |
commit | 76c85b4c79d533ca7a780df381ccda5b9ab2934c (patch) | |
tree | a083be5e58f87ee34f3ee74466d9c974f6e0ac9f /protocols/jabber/message.c | |
parent | 36cf9fda6a5cc4bcbfe98319b48af636fa142590 (diff) |
resource_select now defaults to activity instead of priority. Also, adding
a activity_timeout setting. Now, messages to someone who hasn't spoken for
a while will be sent to his/her bare JID, usually resulting in a broadcast.
This should fix issues with messages sometimes arriving on someone's
Crackberry/Android/etc instead of some place s/he's paying attention to.
Last, the activity timer is only reset on incoming messages.
Diffstat (limited to 'protocols/jabber/message.c')
-rw-r--r-- | protocols/jabber/message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/jabber/message.c b/protocols/jabber/message.c index 6cb67d42..a226a225 100644 --- a/protocols/jabber/message.c +++ b/protocols/jabber/message.c @@ -70,7 +70,7 @@ xt_status jabber_pkt_message( struct xt_node *node, gpointer data ) { if( bud ) { - bud->last_act = time( NULL ); + bud->last_msg = time( NULL ); from = bud->ext_jid ? : bud->bare_jid; } else |