Comparison

plugins/mod_offline.lua @ 8030:bd3527198308

mod_offline: Include timestamp and empty 'with'
author Kim Alvefur <zash@zash.se>
date Sat, 01 Apr 2017 19:04:15 +0200
parent 8024:8eec715c13a6
child 10242:7e5d2a6c9390
comparison
equal deleted inserted replaced
8029:e859f279add4 8030:bd3527198308
22 node = jid_split(to) 22 node = jid_split(to)
23 else 23 else
24 node = origin.username; 24 node = origin.username;
25 end 25 end
26 26
27 return offline_messages:append(node, nil, stanza); 27 return offline_messages:append(node, nil, stanza, os.time(), "");
28 end, -1); 28 end, -1);
29 29
30 module:hook("message/offline/broadcast", function(event) 30 module:hook("message/offline/broadcast", function(event)
31 local origin = event.origin; 31 local origin = event.origin;
32 32