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
commitec9c7c37aafff40c3e077f62b6822cce479ffd1b (patch)
treee6ac4f26d2bade8d9b9a2e0dfb7e6af33f6fec4f
parent22ae61968092757a281e9796db2551803a5b2782 (diff)
downloadprosody-ec9c7c37aafff40c3e077f62b6822cce479ffd1b.tar.gz
prosody-ec9c7c37aafff40c3e077f62b6822cce479ffd1b.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>