# HG changeset patch # User Kim Alvefur # Date 1587596734 -7200 # Node ID 930f38939f1e2fc8983e83a2449f71830adcb0b5 # Parent 4db4bd8a782282c2ce22474f0def782c21c0a440 mod_mam: Remove unused variables [luacheck] Logic using full vs bare JID addressing may return in the future. diff -r 4db4bd8a7822 -r 930f38939f1e plugins/mod_mam/mod_mam.lua --- 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