# HG changeset patch # User Kim Alvefur # Date 1483384237 -3600 # Node ID 0b3c7b03cb90948e10e7587381553f6654bdd581 # Parent 06e3b0ef8bdfcad9f76e94d7850161e89db88715 mod_mam_muc: Use is_stanza from util.stanza if available diff -r 06e3b0ef8bdf -r 0b3c7b03cb90 mod_mam_muc/mod_mam_muc.lua --- a/mod_mam_muc/mod_mam_muc.lua Mon Dec 26 15:43:32 2016 +0100 +++ b/mod_mam_muc/mod_mam_muc.lua Mon Jan 02 20:10:37 2017 +0100 @@ -34,7 +34,7 @@ end local getmetatable = getmetatable; -local function is_stanza(x) +local is_stanza = st.is_stanza or function(x) return getmetatable(x) == st.stanza_mt; end