aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-04-23 01:05:34 +0200
committerKim Alvefur <zash@zash.se>2020-04-23 01:05:34 +0200
commit80aaa484c38af613e61ad2f1af0ca186933ab3b8 (patch)
tree8612a148ee5d6651a0e7d4c80fd12b8a1f17da1e /plugins
parentba452d69231d6cbf4c2efb4f5e99df40d9a11ede (diff)
downloadprosody-80aaa484c38af613e61ad2f1af0ca186933ab3b8.tar.gz
prosody-80aaa484c38af613e61ad2f1af0ca186933ab3b8.zip
mod_mam: Remove unused variables [luacheck]
Logic using full vs bare JID addressing may return in the future.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_mam/mod_mam.lua4
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