plugins/mod_saslauth.lua

changeset 3961
94d9fb07c49c
parent 3733
26571a99f6e6
child 3981
2b0b8fe68df2
--- a/plugins/mod_saslauth.lua	Fri Dec 24 04:58:09 2010 +0000
+++ b/plugins/mod_saslauth.lua	Fri Dec 24 18:54:54 2010 +0000
@@ -321,7 +321,10 @@
 	return true;
 end);
 
-module:hook("iq/self/urn:ietf:params:xml:ns:xmpp-session:session", function(event)
+local function handle_legacy_session(event)
 	event.origin.send(st.reply(event.stanza));
 	return true;
-end);
+end
+
+module:hook("iq/self/urn:ietf:params:xml:ns:xmpp-session:session", handle_legacy_session);
+module:hook("iq/host/urn:ietf:params:xml:ns:xmpp-session:session", handle_legacy_session);

mercurial