changeset 275:9a35c7e2fee4

Merge with Zash
author Matthew Wild <mwild1@gmail.com>
date Sun, 07 Nov 2010 16:03:00 +0000
parents e7296274f48c (diff) cda4855863af (current diff)
children 27c652363874
files
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_seclabels/mod_seclabels.lua	Sun Oct 31 00:27:56 2010 +0200
+++ b/mod_seclabels/mod_seclabels.lua	Sun Nov 07 16:03:00 2010 +0000
@@ -5,6 +5,12 @@
 
 module:add_feature(xmlns_label);
 
+module:hook("account-disco-info", function(event)
+	local stanza = event.stanza;
+	stanza:tag('feature', {var=xmlns_label}):up();
+	stanza:tag('feature', {var=xmlns_label_catalog}):up();
+end);
+
 local labels = {
 	Classified = {
 		SECRET = { color = "black", bgcolor = "aqua", label = "THISISSECRET" };