comparison 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
parents 06e3b0ef8bdf
children c6761ebe613b
comparison
equal deleted inserted replaced
2428:06e3b0ef8bdf 2429:0b3c7b03cb90
32 function (jid) 32 function (jid)
33 return rooms[jid]; 33 return rooms[jid];
34 end 34 end
35 35
36 local getmetatable = getmetatable; 36 local getmetatable = getmetatable;
37 local function is_stanza(x) 37 local is_stanza = st.is_stanza or function(x)
38 return getmetatable(x) == st.stanza_mt; 38 return getmetatable(x) == st.stanza_mt;
39 end 39 end
40 40
41 local tostring = tostring; 41 local tostring = tostring;
42 local time_now = os.time; 42 local time_now = os.time;