1 -- Compatibility with clients that set 'to' on resource bind requests
3 -- http://xmpp.org/rfcs/rfc3920.html#bind
4 -- http://xmpp.org/rfcs/rfc6120.html#bind-servergen-success
6 local st
= require
"util.stanza";
8 module
:hook("iq/host/urn:ietf:params:xml:ns:xmpp-bind:bind", function(event
)
9 local fixed_stanza
= st
.clone(event
.stanza
);
10 fixed_stanza
.attr
.to
= nil;
11 prosody
.core_process_stanza(event
.origin
, fixed_stanza
);