aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-06-24 19:28:48 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-06-24 19:28:48 +0500
commit537fab82602e0be67cdf95af75d658f10afcba7b (patch)
tree84bb2e60eebae4ab34280582f8c0113ec717f5f7 /plugins
parent0ad0b31f472bdc103f73140d660cd331ae145bf9 (diff)
downloadprosody-537fab82602e0be67cdf95af75d658f10afcba7b.tar.gz
prosody-537fab82602e0be67cdf95af75d658f10afcba7b.zip
mod_pep: Added some comments
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_pep.lua6
1 files changed, 3 insertions, 3 deletions
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 -- <pubsub xmlns='http://jabber.org/protocol/pubsub'>
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 -- <publish node='http://jabber.org/protocol/tune'>
local node = payload.attr.node;
payload = payload.tags[1];
- if payload then
+ if payload then -- <item>
publish(session, node, payload);
return true;
end -- TODO else error