Software /
code /
prosody
Comparison
plugins/mod_message.lua @ 8139:4119cca64064
mod_message: Normalize indentation
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 07 May 2017 16:31:48 +0200 |
parent | 8136:aba6d148e674 |
child | 8141:03714861f8fc |
comparison
equal
deleted
inserted
replaced
8138:cb605fb60e32 | 8139:4119cca64064 |
---|---|
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 ok = module:fire_event('message/offline/handle', { | 51 ok = module:fire_event('message/offline/handle', { |
52 origin = origin, | 52 origin = origin, |
53 stanza = stanza, | 53 stanza = stanza, |
54 }); | 54 }); |
55 end | 55 end |
56 | 56 |
57 if not ok then | 57 if not ok then |
58 origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); | 58 origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); |