diff options
author | Kim Alvefur <zash@zash.se> | 2016-11-28 07:35:49 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-11-28 07:35:49 +0100 |
commit | 659e742b599f1061473db6dba2576533ddf5af54 (patch) | |
tree | 0de131c25a2bd0bc3f22f6698764bc68f0009e38 /plugins/mod_mam/mod_mam.lua | |
parent | 7383c85a92202fd550854f5dc94fb98466c4e9f0 (diff) | |
download | prosody-659e742b599f1061473db6dba2576533ddf5af54.tar.gz prosody-659e742b599f1061473db6dba2576533ddf5af54.zip |
mod_mam: Use is_stanza from util.stanza
Diffstat (limited to 'plugins/mod_mam/mod_mam.lua')
-rw-r--r-- | plugins/mod_mam/mod_mam.lua | 6 |
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; |