aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-07-06 00:04:13 +0200
committerKim Alvefur <zash@zash.se>2018-07-06 00:04:13 +0200
commitd3aabbace35d0119c84b95567d533e2948e3b5f6 (patch)
treee6ac4f26d2bade8d9b9a2e0dfb7e6af33f6fec4f
parentd2ac8210b0ee9d63d315f8c56f89f2782dd67b0e (diff)
downloadprosody-d3aabbace35d0119c84b95567d533e2948e3b5f6.tar.gz
prosody-d3aabbace35d0119c84b95567d533e2948e3b5f6.zip
mod_pep: Move comment to a shorter line [luacheck]
-rw-r--r--plugins/mod_pep.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua
index 8ee97757..af94257e 100644
--- a/plugins/mod_pep.lua
+++ b/plugins/mod_pep.lua
@@ -172,8 +172,8 @@ module:hook("iq/bare/http://jabber.org/protocol/pubsub:pubsub", function(event)
local payload = stanza.tags[1];
if stanza.attr.type == 'set' and (not stanza.attr.to or jid_bare(stanza.attr.from) == stanza.attr.to) then
- payload = payload.tags[1];
- if payload and (payload.name == 'publish' or payload.name == 'retract') and payload.attr.node then -- <publish node='http://jabber.org/protocol/tune'>
+ payload = payload.tags[1]; -- <publish node='http://jabber.org/protocol/tune'>
+ if payload and (payload.name == 'publish' or payload.name == 'retract') and payload.attr.node then
local node = payload.attr.node;
payload = payload.tags[1];
if payload and payload.name == "item" then -- <item>