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 | 5c7a04bc7b0b4fac73fa2259715ba030aa792ff4 (patch) | |
tree | 35796ec2059fbfe771b745cfd444540df177f34a /plugins | |
parent | 06124bad4d8c84f2d18e64a55eef0a8bfa55e7eb (diff) | |
download | prosody-5c7a04bc7b0b4fac73fa2259715ba030aa792ff4.tar.gz prosody-5c7a04bc7b0b4fac73fa2259715ba030aa792ff4.zip |
mod_storage_sql: Use is_stanza() from util.stanza
Diffstat (limited to 'plugins')
-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 |