Software /
code /
prosody
Comparison
plugins/mod_mam/mod_mam.lua @ 11727:f3aee8a825cc
Fix various spelling errors (thanks codespell)
Also special thanks to timeless, for wordlessly reminding me to check
for typos.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 27 Jul 2021 00:13:18 +0200 |
parent | 11337:f89c8e6beaa6 |
child | 11757:8141645e3865 |
comparison
equal
deleted
inserted
replaced
11726:76156c675456 | 11727:f3aee8a825cc |
---|---|
386 local log = c2s and origin.log or module._log; | 386 local log = c2s and origin.log or module._log; |
387 local orig_from = stanza.attr.from; | 387 local orig_from = stanza.attr.from; |
388 local orig_to = stanza.attr.to or orig_from; | 388 local orig_to = stanza.attr.to or orig_from; |
389 -- Stanza without 'to' are treated as if it was to their own bare jid | 389 -- Stanza without 'to' are treated as if it was to their own bare jid |
390 | 390 |
391 -- Whos storage do we put it in? | 391 -- Whose storage do we put it in? |
392 local store_user = c2s and origin.username or jid_split(orig_to); | 392 local store_user = c2s and origin.username or jid_split(orig_to); |
393 -- And who are they chatting with? | 393 -- And who are they chatting with? |
394 local with = jid_bare(c2s and orig_to or orig_from); | 394 local with = jid_bare(c2s and orig_to or orig_from); |
395 | 395 |
396 -- Filter out <stanza-id> that claim to be from us | 396 -- Filter out <stanza-id> that claim to be from us |