aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-11-28 07:30:39 +0100
committerKim Alvefur <zash@zash.se>2016-11-28 07:30:39 +0100
commitb89b681cd2e5a96767d6503b55dba8df451b8073 (patch)
tree35796ec2059fbfe771b745cfd444540df177f34a /plugins
parent2d642bfb76c8a191733a99bf6886f683dc901b53 (diff)
downloadprosody-b89b681cd2e5a96767d6503b55dba8df451b8073.tar.gz
prosody-b89b681cd2e5a96767d6503b55dba8df451b8073.zip
mod_storage_sql: Use is_stanza() from util.stanza
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_storage_sql.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua
index 4f46b3f6..b7ade340 100644
--- a/plugins/mod_storage_sql.lua
+++ b/plugins/mod_storage_sql.lua
@@ -7,10 +7,8 @@ local xml_parse = require "util.xml".parse;
local uuid = require "util.uuid";
local resolve_relative_path = require "util.paths".resolve_relative_path;
-local stanza_mt = require"util.stanza".stanza_mt;
-local getmetatable = getmetatable;
+local is_stanza = require"util.stanza".is_stanza;
local t_concat = table.concat;
-local function is_stanza(x) return getmetatable(x) == stanza_mt; end
local noop = function() end
local unpack = unpack