# HG changeset patch
# User Paul Aurich <paul@darkrain42.org>
# Date 1260035033 28800
# Node ID 814eaba0c777a593908e3e1a2832fe6c996816b3
# Parent  265441f2ad48d250b4d699dbb3793f7ffff81667
mod_pep: Allow storage of urn:xmpp:avatar:data node (payload only with base64 data)

diff -r 265441f2ad48 -r 814eaba0c777 plugins/mod_pep.lua
--- a/plugins/mod_pep.lua	Sat Dec 05 13:34:45 2009 +0000
+++ b/plugins/mod_pep.lua	Sat Dec 05 09:43:53 2009 -0800
@@ -39,7 +39,7 @@
 
 local function publish(session, node, item)
 	item.attr.xmlns = nil;
-	local disable = #item.tags ~= 1 or #item.tags[1].tags == 0;
+	local disable = #item.tags ~= 1 or #item.tags[1] == 0;
 	if #item.tags == 0 then item.name = "retract"; end
 	local bare = session.username..'@'..session.host;
 	local stanza = st.message({from=bare, type='headline'})