changeset 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
parents c6761ebe613b
children b8805ab1d470
files mod_mam_muc/mod_mam_muc.lua
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
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;