Software / code / prosody
Comparison
plugins/mod_pep.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 | 8330:8d5c2eef1654 |
| child | 8965:1cc5ea1df5ba |
comparison
equal
deleted
inserted
replaced
| 8727:285075a27f28 | 8728:41c959c5c84b |
|---|---|
| 115 end | 115 end |
| 116 return current; -- no caps, could mean caps optimization, so return current | 116 return current; -- no caps, could mean caps optimization, so return current |
| 117 end | 117 end |
| 118 | 118 |
| 119 module:hook("presence/bare", function(event) | 119 module:hook("presence/bare", function(event) |
| 120 -- inbound presence to bare JID recieved | 120 -- inbound presence to bare JID received |
| 121 local origin, stanza = event.origin, event.stanza; | 121 local origin, stanza = event.origin, event.stanza; |
| 122 local user = stanza.attr.to or (origin.username..'@'..origin.host); | 122 local user = stanza.attr.to or (origin.username..'@'..origin.host); |
| 123 local t = stanza.attr.type; | 123 local t = stanza.attr.type; |
| 124 local self = not stanza.attr.to; | 124 local self = not stanza.attr.to; |
| 125 | 125 |