diff options
author | Kim Alvefur <zash@zash.se> | 2016-11-28 07:30:39 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-11-28 07:30:39 +0100 |
commit | b89b681cd2e5a96767d6503b55dba8df451b8073 (patch) | |
tree | 35796ec2059fbfe771b745cfd444540df177f34a /plugins/mod_storage_sql.lua | |
parent | 2d642bfb76c8a191733a99bf6886f683dc901b53 (diff) | |
download | prosody-b89b681cd2e5a96767d6503b55dba8df451b8073.tar.gz prosody-b89b681cd2e5a96767d6503b55dba8df451b8073.zip |
mod_storage_sql: Use is_stanza() from util.stanza
Diffstat (limited to 'plugins/mod_storage_sql.lua')
-rw-r--r-- | plugins/mod_storage_sql.lua | 4 |
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 |