Changeset

1400:cbbb4f4fed68

mod_pep: Added some comments
author Waqas Hussain <waqas20@gmail.com>
date Wed, 24 Jun 2009 19:28:48 +0500
parents 1399:8879f8278762
children 1401:a3ce55c1e43a
files plugins/mod_pep.lua
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_pep.lua	Wed Jun 24 19:24:02 2009 +0500
+++ b/plugins/mod_pep.lua	Wed Jun 24 19:28:48 2009 +0500
@@ -69,12 +69,12 @@
 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