mod_mam_muc: Remove fallback for util.stanza.is_stanza, it should be available
authorKim Alvefur <zash@zash.se>
Tue, 14 Feb 2017 09:45:34 +0100
changeset 2502 e065e94f0ac6
parent 2501 c6761ebe613b
child 2503 b8805ab1d470
mod_mam_muc: Remove fallback for util.stanza.is_stanza, it should be available
mod_mam_muc/mod_mam_muc.lua
--- 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;