Comparison

plugins/mod_pep.lua @ 1338:0bfc8d866479

mod_pep: Add pubsub#publsih disco feature to host
author Waqas Hussain <waqas20@gmail.com>
date Fri, 12 Jun 2009 15:33:41 +0500
parent 1335:7c71783b40cf
child 1399:8879f8278762
comparison
equal deleted inserted replaced
1336:389b4fb48901 1338:0bfc8d866479
10 10
11 local data = {}; 11 local data = {};
12 local recipients = {}; 12 local recipients = {};
13 13
14 module:add_identity("pubsub", "pep"); 14 module:add_identity("pubsub", "pep");
15 module:add_feature("http://jabber.org/protocol/pubsub#publish");
15 16
16 local function publish(session, node, item) 17 local function publish(session, node, item)
17 local stanza = st.message({from=session.full_jid, type='headline'}) 18 local stanza = st.message({from=session.full_jid, type='headline'})
18 :tag('event', {xmlns='http://jabber.org/protocol/pubsub#event'}) 19 :tag('event', {xmlns='http://jabber.org/protocol/pubsub#event'})
19 :tag('items', {node=node}) 20 :tag('items', {node=node})