aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-06-24 19:40:12 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-06-24 19:40:12 +0500
commit6f3828182630092188131412b6f81e9dfec89eba (patch)
tree22f7f7685c8b5d647e6d18f20127b408b104a237 /plugins
parentdbc046d1e57f3367eb88d58c805f6c947085acc9 (diff)
downloadprosody-6f3828182630092188131412b6f81e9dfec89eba.tar.gz
prosody-6f3828182630092188131412b6f81e9dfec89eba.zip
mod_pep: Broadcast from the user's bare JID, not full JID
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_pep.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua
index b09d9e20..5c6d2cdd 100644
--- a/plugins/mod_pep.lua
+++ b/plugins/mod_pep.lua
@@ -17,14 +17,14 @@ module:add_feature("http://jabber.org/protocol/pubsub#publish");
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