plugins/mod_saslauth.lua
changeset 7787 9f70d35a1602
parent 7301 7056bbaf81ee
child 7899 1a2674123c1c
equal deleted inserted replaced
7786:f54c960240da 7787:9f70d35a1602
   271 			:up():up();
   271 			:up():up();
   272 		end
   272 		end
   273 	end
   273 	end
   274 end);
   274 end);
   275 
   275 
   276 module:hook("iq/self/urn:ietf:params:xml:ns:xmpp-bind:bind", function(event)
   276 module:hook("stanza/iq/urn:ietf:params:xml:ns:xmpp-bind:bind", function(event)
   277 	local origin, stanza = event.origin, event.stanza;
   277 	local origin, stanza = event.origin, event.stanza;
   278 	local resource;
   278 	local resource;
   279 	if stanza.attr.type == "set" then
   279 	if stanza.attr.type == "set" then
   280 		local bind = stanza.tags[1];
   280 		local bind = stanza.tags[1];
   281 		resource = bind:get_child("resource");
   281 		resource = bind:get_child("resource");