Software /
code /
prosody
Changeset
10752:930f38939f1e
mod_mam: Remove unused variables [luacheck]
Logic using full vs bare JID addressing may return in the future.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 23 Apr 2020 01:05:34 +0200 |
parents | 10751:4db4bd8a7822 |
children | 10758:d0e6d5bc7ea2 |
files | plugins/mod_mam/mod_mam.lua |
diffstat | 1 files changed, 0 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_mam/mod_mam.lua Thu Apr 23 00:55:34 2020 +0200 +++ b/plugins/mod_mam/mod_mam.lua Thu Apr 23 01:05:34 2020 +0200 @@ -265,10 +265,6 @@ local function should_store(stanza) --> boolean, reason: string local st_type = stanza.attr.type or "normal"; - local st_to_full = (stanza.attr.to or ""):find("/"); - if st_type == "error" then - st_to_full = (stanza.attr.from or ""):find("/"); - end -- FIXME pass direction of stanza and use that along with bare/full JID addressing -- for more accurate MUC / type=groupchat check