aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/jabber/presence.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2009-11-19 13:11:38 +0000
committerWilmer van der Gaast <wilmer@gaast.net>2009-11-19 13:11:38 +0000
commit76c85b4c79d533ca7a780df381ccda5b9ab2934c (patch)
treea083be5e58f87ee34f3ee74466d9c974f6e0ac9f /protocols/jabber/presence.c
parent36cf9fda6a5cc4bcbfe98319b48af636fa142590 (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/presence.c')
-rw-r--r--protocols/jabber/presence.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/protocols/jabber/presence.c b/protocols/jabber/presence.c
index 939bc888..68d4e52c 100644
--- a/protocols/jabber/presence.c
+++ b/protocols/jabber/presence.c
@@ -67,9 +67,6 @@ xt_status jabber_pkt_presence( struct xt_node *node, gpointer data )
else
{
bud->away_state = NULL;
- /* Let's only set last_act if there's *no* away state,
- since it could be some auto-away thingy. */
- bud->last_act = time( NULL );
}
if( ( c = xt_find_node( node->children, "priority" ) ) && c->text_len > 0 )