Software /
code /
prosody
Diff
plugins/mod_mam/mod_mam.lua @ 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 |
parent | 10751:4db4bd8a7822 |
child | 10773:3e1046b39484 |
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