aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_storage_xep0227.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-05-15 15:32:39 +0200
committerKim Alvefur <zash@zash.se>2015-05-15 15:32:39 +0200
commit2de1fd6037e68bdd0b103284ce7c94a2736d9eaa (patch)
treedc09be1d32ea694002b7f78aeecc5d10d58c6b99 /plugins/mod_storage_xep0227.lua
parent83a9c237c37e55897eb666dde09a48e9a72799b8 (diff)
downloadprosody-2de1fd6037e68bdd0b103284ce7c94a2736d9eaa.tar.gz
prosody-2de1fd6037e68bdd0b103284ce7c94a2736d9eaa.zip
mod_storage_xep0227: Silence luacheck warnings
Diffstat (limited to 'plugins/mod_storage_xep0227.lua')
-rw-r--r--plugins/mod_storage_xep0227.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mod_storage_xep0227.lua b/plugins/mod_storage_xep0227.lua
index 4510f5d1..ef227ca3 100644
--- a/plugins/mod_storage_xep0227.lua
+++ b/plugins/mod_storage_xep0227.lua
@@ -71,7 +71,7 @@ local extended = "http://prosody.im/protocol/extended-xep0227\1";
handlers.accounts = {
get = function(self, user)
- local user = getUserElement(getXml(user, self.host));
+ user = getUserElement(getXml(user, self.host));
if user and user.attr.password then
return { password = user.attr.password };
elseif user then
@@ -104,7 +104,7 @@ handlers.accounts = {
};
handlers.vcard = {
get = function(self, user)
- local user = getUserElement(getXml(user, self.host));
+ user = getUserElement(getXml(user, self.host));
if user then
local vcard = user:get_child("vCard", 'vcard-temp');
if vcard then
@@ -133,7 +133,7 @@ handlers.vcard = {
};
handlers.private = {
get = function(self, user)
- local user = getUserElement(getXml(user, self.host));
+ user = getUserElement(getXml(user, self.host));
if user then
local private = user:get_child("query", "jabber:iq:private");
if private then