Changeset

2041:8cf9b978ab36

PEP: Fixed namespace for the <item> element in PEP broadcasts.
author Waqas Hussain <waqas20@gmail.com>
date Thu, 22 Oct 2009 02:12:24 +0500
parents 2040:ca85461afa6c
children 2042:34e6e06dd089
files plugins/mod_pep.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_pep.lua	Wed Oct 21 20:30:42 2009 +0100
+++ b/plugins/mod_pep.lua	Thu Oct 22 02:12:24 2009 +0500
@@ -29,6 +29,7 @@
 module:add_feature("http://jabber.org/protocol/pubsub#publish");
 
 local function publish(session, node, item)
+	item.attr.xmlns = nil;
 	local disable = #item.tags ~= 1 or #item.tags[1].tags == 0;
 	if #item.tags == 0 then item.name = "retract"; end
 	local bare = session.username..'@'..session.host;