comparison plugins/mod_message.lua @ 8146:5c91fb62338e

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Wed, 17 May 2017 01:06:20 +0200
parents 03714861f8fc
children 41c959c5c84b
comparison
equal deleted inserted replaced
8133:102e1ec8bee1 8146:5c91fb62338e
46 end 46 end
47 -- no resources are online 47 -- no resources are online
48 local node, host = jid_split(bare); 48 local node, host = jid_split(bare);
49 local ok 49 local ok
50 if user_exists(node, host) then 50 if user_exists(node, host) then
51 -- TODO apply the default privacy list
52
53 ok = module:fire_event('message/offline/handle', { 51 ok = module:fire_event('message/offline/handle', {
54 origin = origin, 52 username = node;
55 stanza = stanza, 53 origin = origin,
54 stanza = stanza,
56 }); 55 });
57 end 56 end
58 57
59 if not ok then 58 if not ok then
60 origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); 59 origin.send(st.error_reply(stanza, "cancel", "service-unavailable"));