Changeset

7838:e5d5e5946af5

mod_mam: Use is_stanza from util.stanza
author Kim Alvefur <zash@zash.se>
date Mon, 28 Nov 2016 07:35:49 +0100
parents 7837:a17bddf62a28
children 7839:f3e1925f29c2
files plugins/mod_mam/mod_mam.lua
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_mam/mod_mam.lua	Sat Nov 26 21:50:06 2016 +0100
+++ b/plugins/mod_mam/mod_mam.lua	Mon Nov 28 07:35:49 2016 +0100
@@ -21,11 +21,7 @@
 
 local rm_load_roster = require "core.rostermanager".load_roster;
 
-local getmetatable = getmetatable;
-local function is_stanza(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;