aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_mam
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-11-28 07:35:49 +0100
committerKim Alvefur <zash@zash.se>2016-11-28 07:35:49 +0100
commit7f28edd090d2d1546ded116de193bab51bea268a (patch)
tree0de131c25a2bd0bc3f22f6698764bc68f0009e38 /plugins/mod_mam
parente7a31b6e19d3aaf4e20ea62cc072195c6a0734b0 (diff)
downloadprosody-7f28edd090d2d1546ded116de193bab51bea268a.tar.gz
prosody-7f28edd090d2d1546ded116de193bab51bea268a.zip
mod_mam: Use is_stanza from util.stanza
Diffstat (limited to 'plugins/mod_mam')
-rw-r--r--plugins/mod_mam/mod_mam.lua6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua
index 39d1bcf5..bc348919 100644
--- a/plugins/mod_mam/mod_mam.lua
+++ b/plugins/mod_mam/mod_mam.lua
@@ -21,11 +21,7 @@ local host = module.host;
local rm_load_roster = require "core.rostermanager".load_roster;
-local getmetatable = getmetatable;
-local function is_stanza(x)
- return getmetatable(x) == st.stanza_mt;
-end
-
+local is_stanza = st.is_stanza;
local tostring = tostring;
local time_now = os.time;
local m_min = math.min;