Comparison

plugins/mod_pep.lua @ 1335:7c71783b40cf

mod_pep: Add host identity pubsub/pep
author Waqas Hussain <waqas20@gmail.com>
date Fri, 12 Jun 2009 14:35:52 +0500
parent 1332:f7fed9f77455
child 1338:0bfc8d866479
comparison
equal deleted inserted replaced
1334:6846c5cc9ce2 1335:7c71783b40cf
8 local pairs, ipairs = pairs, ipairs; 8 local pairs, ipairs = pairs, ipairs;
9 local load_roster = require "core.rostermanager".load_roster; 9 local load_roster = require "core.rostermanager".load_roster;
10 10
11 local data = {}; 11 local data = {};
12 local recipients = {}; 12 local recipients = {};
13
14 module:add_identity("pubsub", "pep");
13 15
14 local function publish(session, node, item) 16 local function publish(session, node, item)
15 local stanza = st.message({from=session.full_jid, type='headline'}) 17 local stanza = st.message({from=session.full_jid, type='headline'})
16 :tag('event', {xmlns='http://jabber.org/protocol/pubsub#event'}) 18 :tag('event', {xmlns='http://jabber.org/protocol/pubsub#event'})
17 :tag('items', {node=node}) 19 :tag('items', {node=node})