Software /
code /
prosody
Comparison
plugins/mod_message.lua @ 8728:41c959c5c84b
Fix spelling throughout the codebase [codespell]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 04 Feb 2018 01:51:25 +0100 |
parent | 8141:03714861f8fc |
child | 11482:671f6b867e0d |
comparison
equal
deleted
inserted
replaced
8727:285075a27f28 | 8728:41c959c5c84b |
---|---|
61 end | 61 end |
62 return true; | 62 return true; |
63 end | 63 end |
64 | 64 |
65 module:hook("message/full", function(data) | 65 module:hook("message/full", function(data) |
66 -- message to full JID recieved | 66 -- message to full JID received |
67 local origin, stanza = data.origin, data.stanza; | 67 local origin, stanza = data.origin, data.stanza; |
68 | 68 |
69 local session = full_sessions[stanza.attr.to]; | 69 local session = full_sessions[stanza.attr.to]; |
70 if session and session.send(stanza) then | 70 if session and session.send(stanza) then |
71 return true; | 71 return true; |
73 return process_to_bare(jid_bare(stanza.attr.to), origin, stanza); | 73 return process_to_bare(jid_bare(stanza.attr.to), origin, stanza); |
74 end | 74 end |
75 end, -1); | 75 end, -1); |
76 | 76 |
77 module:hook("message/bare", function(data) | 77 module:hook("message/bare", function(data) |
78 -- message to bare JID recieved | 78 -- message to bare JID received |
79 local origin, stanza = data.origin, data.stanza; | 79 local origin, stanza = data.origin, data.stanza; |
80 | 80 |
81 return process_to_bare(stanza.attr.to or (origin.username..'@'..origin.host), origin, stanza); | 81 return process_to_bare(stanza.attr.to or (origin.username..'@'..origin.host), origin, stanza); |
82 end, -1); | 82 end, -1); |
83 | 83 |