Software /
code /
prosody-modules
Diff
mod_mam_muc/mod_mam_muc.lua @ 2429:0b3c7b03cb90
mod_mam_muc: Use is_stanza from util.stanza if available
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 02 Jan 2017 20:10:37 +0100 |
parent | 2428:06e3b0ef8bdf |
child | 2497:c6761ebe613b |
line wrap: on
line diff
--- 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