Software /
code /
prosody
Changeset
7751:168919a947ed
mod_storage_sql: Use is_stanza() from util.stanza
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 28 Nov 2016 07:30:39 +0100 |
parents | 7750:e58524240b30 |
children | 7752:56abe6a8e761 |
files | plugins/mod_storage_sql.lua |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_storage_sql.lua Mon Nov 28 07:30:21 2016 +0100 +++ b/plugins/mod_storage_sql.lua Mon Nov 28 07:30:39 2016 +0100 @@ -7,10 +7,8 @@ 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