aboutsummaryrefslogtreecommitdiffstats
path: root/core/moduleapi.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-03-04 17:49:48 +0100
committerKim Alvefur <zash@zash.se>2017-03-04 17:49:48 +0100
commit1ecc3a7918024a07c2b9f38d274584683e7c3218 (patch)
tree91aa73ddb7089baef93b2e47966f53c5c945ed52 /core/moduleapi.lua
parent140c6de0260c404abebb860705a81ed7398c7c52 (diff)
downloadprosody-1ecc3a7918024a07c2b9f38d274584683e7c3218.tar.gz
prosody-1ecc3a7918024a07c2b9f38d274584683e7c3218.zip
core: Split some very long lines [luacheck]
Diffstat (limited to 'core/moduleapi.lua')
-rw-r--r--core/moduleapi.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua
index ee1f3e60..34214f26 100644
--- a/core/moduleapi.lua
+++ b/core/moduleapi.lua
@@ -115,7 +115,8 @@ function api:hook_tag(xmlns, name, handler, priority)
self:log("warn", "Error: Insufficient parameters to module:hook_stanza()");
return;
end
- return self:hook("stanza/"..(xmlns and (xmlns..":") or "")..name, function (data) return handler(data.origin, data.stanza, data); end, priority);
+ return self:hook("stanza/"..(xmlns and (xmlns..":") or "")..name,
+ function (data) return handler(data.origin, data.stanza, data); end, priority);
end
api.hook_stanza = api.hook_tag; -- COMPAT w/pre-0.9
@@ -187,7 +188,8 @@ function api:shared(...)
local path = paths[i];
if path:sub(1,1) ~= "/" then -- Prepend default components
local n_components = select(2, path:gsub("/", "%1"));
- path = (n_components<#default_path_components and "/" or "")..t_concat(default_path_components, "/", 1, #default_path_components-n_components).."/"..path;
+ path = (n_components<#default_path_components and "/" or "")
+ ..t_concat(default_path_components, "/", 1, #default_path_components-n_components).."/"..path;
end
local shared = shared_data[path];
if not shared then