diff mod_csi/mod_csi.lua @ 1590:fbb4cd2922a1

mod_csi: Update namespace to published version
author Kim Alvefur <zash@zash.se>
date Fri, 09 Jan 2015 11:36:31 +0100
parents 90fe03e65d2c
children eaf0b1e95016
line wrap: on
line diff
--- a/mod_csi/mod_csi.lua	Sat Dec 20 21:56:13 2014 +0100
+++ b/mod_csi/mod_csi.lua	Fri Jan 09 11:36:31 2015 +0100
@@ -1,5 +1,6 @@
 local st = require "util.stanza";
-local csi_feature = st.stanza("csi", { xmlns = "urn:xmpp:csi" });
+local xmlns_csi = "urn:xmpp:csi:0";
+local csi_feature = st.stanza("csi", { xmlns = xmlns_csi });
 
 module:hook("stream-features", function (event)
 	if event.origin.username then
@@ -14,9 +15,8 @@
 			return true;
 		end
 	end;
-		
 end
 
-module:hook("stanza/urn:xmpp:csi:active", refire_event("csi-client-active"));
-module:hook("stanza/urn:xmpp:csi:inactive", refire_event("csi-client-inactive"));
+module:hook("stanza/"..xmlns_csi..":active", refire_event("csi-client-active"));
+module:hook("stanza/"..xmlns_csi..":inactive", refire_event("csi-client-inactive"));