diff options
author | Kim Alvefur <zash@zash.se> | 2020-04-23 01:05:34 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-04-23 01:05:34 +0200 |
commit | 7c3e03b3bbb8494882738f83459266579df97c72 (patch) | |
tree | 8612a148ee5d6651a0e7d4c80fd12b8a1f17da1e | |
parent | 9644332df92d2c2d589744377cc685a405213143 (diff) | |
download | prosody-7c3e03b3bbb8494882738f83459266579df97c72.tar.gz prosody-7c3e03b3bbb8494882738f83459266579df97c72.zip |
mod_mam: Remove unused variables [luacheck]
Logic using full vs bare JID addressing may return in the future.
-rw-r--r-- | plugins/mod_mam/mod_mam.lua | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua index 65859afd..d61d4883 100644 --- a/plugins/mod_mam/mod_mam.lua +++ b/plugins/mod_mam/mod_mam.lua @@ -265,10 +265,6 @@ end 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 |