mod_csi/mod_csi.lua
changeset 1590 fbb4cd2922a1
parent 1483 90fe03e65d2c
child 3399 eaf0b1e95016
--- 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"));