aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commit659e742b599f1061473db6dba2576533ddf5af54 (patch)
tree0de131c25a2bd0bc3f22f6698764bc68f0009e38 /plugins
parent7383c85a92202fd550854f5dc94fb98466c4e9f0 (diff)
downloadprosody-659e742b599f1061473db6dba2576533ddf5af54.tar.gz
prosody-659e742b599f1061473db6dba2576533ddf5af54.zip
mod_mam: Use is_stanza from util.stanza
Diffstat (limited to 'plugins')
-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;