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