From 537fab82602e0be67cdf95af75d658f10afcba7b Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Wed, 24 Jun 2009 19:28:48 +0500 Subject: mod_pep: Added some comments --- plugins/mod_pep.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua index 41ccf059..d0c9ea24 100644 --- a/plugins/mod_pep.lua +++ b/plugins/mod_pep.lua @@ -69,12 +69,12 @@ end, 10); module:add_iq_handler("c2s", "http://jabber.org/protocol/pubsub", function (session, stanza) if stanza.attr.type == 'set' and (not stanza.attr.to or jid_bare(stanza.attr.from) == stanza.attr.to) then local payload = stanza.tags[1]; - if payload.name == 'pubsub' then + if payload.name == 'pubsub' then -- payload = payload.tags[1]; - if payload and payload.name == 'publish' and payload.attr.node then + if payload and payload.name == 'publish' and payload.attr.node then -- local node = payload.attr.node; payload = payload.tags[1]; - if payload then + if payload then -- publish(session, node, payload); return true; end -- TODO else error -- cgit v1.2.3