# HG changeset patch # User Kim Alvefur # Date 1480314949 -3600 # Node ID e5d5e5946af552afa3977b3535e99a9d4b5f691e # Parent a17bddf62a28020a24bec2ab8f818d69f3faeac1 mod_mam: Use is_stanza from util.stanza diff -r a17bddf62a28 -r e5d5e5946af5 plugins/mod_mam/mod_mam.lua --- a/plugins/mod_mam/mod_mam.lua Sat Nov 26 21:50:06 2016 +0100 +++ b/plugins/mod_mam/mod_mam.lua Mon Nov 28 07:35:49 2016 +0100 @@ -21,11 +21,7 @@ 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;