Software /
code /
prosody
Comparison
plugins/mod_component.lua @ 3540:bc139431830b
Monster whitespace commit (beware the whitespace monster).
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sat, 16 Oct 2010 23:00:42 +0500 |
parent | 3531:f41e1cfe92f4 |
child | 3579:9720fa5e0991 |
comparison
equal
deleted
inserted
replaced
3539:8bbd965267b2 | 3540:bc139431830b |
---|---|
57 session.component_validate_from = module:get_option_boolean("validate_from_addresses") ~= false; | 57 session.component_validate_from = module:get_option_boolean("validate_from_addresses") ~= false; |
58 | 58 |
59 -- If component not already created for this host, create one now | 59 -- If component not already created for this host, create one now |
60 if not hosts[session.host].connected then | 60 if not hosts[session.host].connected then |
61 local send = session.send; | 61 local send = session.send; |
62 session.component_session = cm_register_component(session.host, function (_, data) | 62 session.component_session = cm_register_component(session.host, function (_, data) |
63 if data.attr and data.attr.xmlns == "jabber:client" then | 63 if data.attr and data.attr.xmlns == "jabber:client" then |
64 data.attr.xmlns = nil; | 64 data.attr.xmlns = nil; |
65 end | 65 end |
66 return send(data); | 66 return send(data); |
67 end); | 67 end); |