Software /
code /
prosody-modules
Changeset
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 |
parents | 2428:06e3b0ef8bdf |
children | 2430:a2625a36c092 |
files | mod_mam_muc/mod_mam_muc.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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