Software /
code /
prosody-modules
Diff
mod_mam_muc/mod_mam_muc.lua @ 2498:e065e94f0ac6
mod_mam_muc: Remove fallback for util.stanza.is_stanza, it should be available
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 14 Feb 2017 09:45:34 +0100 |
parent | 2497:c6761ebe613b |
child | 2500:ec046f915506 |
line wrap: on
line diff
--- a/mod_mam_muc/mod_mam_muc.lua Tue Feb 14 09:40:24 2017 +0100 +++ b/mod_mam_muc/mod_mam_muc.lua Tue Feb 14 09:45:34 2017 +0100 @@ -33,11 +33,7 @@ return rooms[jid]; end -local getmetatable = getmetatable; -local is_stanza = st.is_stanza or function(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;