# HG changeset patch # User Kim Alvefur # Date 1420799791 -3600 # Node ID fbb4cd2922a1c16ac54c323de2bc6d0f06197a8c # Parent 0da51b825263ac07d2d19e9f17719a78094b8235 mod_csi: Update namespace to published version diff -r 0da51b825263 -r fbb4cd2922a1 mod_csi/mod_csi.lua --- 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"));