# HG changeset patch # User Matthew Wild # Date 1245890333 -3600 # Node ID 19269d278c38de9d6f259e9299fb49fb5dd7d163 # Parent 12abd2da888539f989a6e361b821c9c5dbe75858 mod_component: Rewrite jabber:client stanzas to jabber:component:accept, thanks JaredH! diff -r 12abd2da8885 -r 19269d278c38 plugins/mod_component.lua --- a/plugins/mod_component.lua Wed Jun 24 20:09:44 2009 +0500 +++ b/plugins/mod_component.lua Thu Jun 25 01:38:53 2009 +0100 @@ -64,7 +64,12 @@ -- If component not already created for this host, create one now if not hosts[session.host].connected then local send = session.send; - session.component_session = cm_register_component(session.host, function (_, data) return send(data); end); + session.component_session = cm_register_component(session.host, function (_, data) + if data.attr and data.attr.xmlns == "jabber:client" then + data.attr.xmlns = nil; + end + return send(data); + end); hosts[session.host].connected = true; log("info", "Component successfully registered"); else