aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_mam/mod_mam.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_mam/mod_mam.lua')
-rw-r--r--plugins/mod_mam/mod_mam.lua6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua
index 39d1bcf5..bc348919 100644
--- a/plugins/mod_mam/mod_mam.lua
+++ b/plugins/mod_mam/mod_mam.lua
@@ -21,11 +21,7 @@ local host = module.host;
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;