diff options
-rw-r--r-- | plugins/mod_pep.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua index 6d2ec436..66197f7a 100644 --- a/plugins/mod_pep.lua +++ b/plugins/mod_pep.lua @@ -133,7 +133,7 @@ module:hook("iq/bare/http://jabber.org/protocol/pubsub:pubsub", function(event) if payload and (payload.name == 'publish' or payload.name == 'retract') and payload.attr.node then -- <publish node='http://jabber.org/protocol/tune'> local node = payload.attr.node; payload = payload.tags[1]; - if payload then -- <item> + if payload and payload.name == "item" then -- <item> publish(session, node, st.clone(payload)); session.send(st.reply(stanza)); return true; |