# HG changeset patch # User Waqas Hussain # Date 1245854412 -18000 # Node ID 34723bbd5acbd95575dd07486b9e9135e92b64d1 # Parent a3ce55c1e43a1ef3c6a81a311d296410a0deb663 mod_pep: Broadcast from the user's bare JID, not full JID diff -r a3ce55c1e43a -r 34723bbd5acb plugins/mod_pep.lua --- a/plugins/mod_pep.lua Wed Jun 24 19:38:28 2009 +0500 +++ b/plugins/mod_pep.lua Wed Jun 24 19:40:12 2009 +0500 @@ -17,14 +17,14 @@ local function publish(session, node, item) local disable = #item.tags ~= 1 or #item.tags[1].tags == 0; - local stanza = st.message({from=session.full_jid, type='headline'}) + local bare = session.username..'@'..session.host; + local stanza = st.message({from=bare, type='headline'}) :tag('event', {xmlns='http://jabber.org/protocol/pubsub#event'}) :tag('items', {node=node}) :add_child(item) :up() :up(); - local bare = session.username..'@'..session.host; -- store for the future local user_data = data[bare]; if disable then