changeset 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 0da51b825263
children 21e439ca7208
files mod_csi/mod_csi.lua
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
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"));