# HG changeset patch # User Kim Alvefur # Date 1357929509 -3600 # Node ID 7453245f16e7c48d914fae11982c0e539bca8b67 # Parent 78b7a4ad2f32f8ffd8cb21fa9088191a23872d9e mod_presence: Put a timestamp on presence we store for probes diff -r 78b7a4ad2f32 -r 7453245f16e7 plugins/mod_presence.lua --- a/plugins/mod_presence.lua Wed Jan 09 22:01:52 2013 +0100 +++ b/plugins/mod_presence.lua Fri Jan 11 19:38:29 2013 +0100 @@ -18,6 +18,7 @@ local st = require "util.stanza"; local jid_split = require "util.jid".split; local jid_bare = require "util.jid".bare; +local datetime = require "util.datetime"; local hosts = hosts; local NULL = {}; @@ -135,6 +136,7 @@ end else origin.presence = stanza; + stanza:tag("delay", { xmlns = "urn:xmpp:delay", from = host, stamp = datetime.datetime() }):up(); if origin.priority ~= priority then origin.priority = priority; recalc_resource_map(user);