Diff

plugins/mod_pep.lua @ 8965:1cc5ea1df5ba

mod_pep: Move comment to a shorter line [luacheck]
author Kim Alvefur <zash@zash.se>
date Fri, 06 Jul 2018 00:04:13 +0200
parent 8728:41c959c5c84b
child 8966:9106e9286203
line wrap: on
line diff
--- a/plugins/mod_pep.lua	Wed Jul 04 06:57:32 2018 +0100
+++ b/plugins/mod_pep.lua	Fri Jul 06 00:04:13 2018 +0200
@@ -172,8 +172,8 @@
 	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>