# HG changeset patch # User Goffi # Date 1450693870 -3600 # Node ID 66aaf7c3cb29cb0b92a8980594648982cb1a7eba # Parent 8dda3d7d616f105b507b1c3762fa44be59be4ec0 mod_delegation: updated README diff -r 8dda3d7d616f -r 66aaf7c3cb29 mod_delegation/README.markdown --- a/mod_delegation/README.markdown Mon Dec 21 11:23:14 2015 +0100 +++ b/mod_delegation/README.markdown Mon Dec 21 11:31:10 2015 +0100 @@ -20,26 +20,6 @@ [XEP-0355](http://xmpp.org/extensions/xep-0355.html). Only the admin mode is implemented so far. -If you use it with a component, you need to patch -core/mod\_component.lua to fire a new signal. To do it, copy the -following patch in a, for example, /tmp/component.patch file: - - diff --git a/plugins/mod_component.lua b/plugins/mod_component.lua - --- a/plugins/mod_component.lua - +++ b/plugins/mod_component.lua - @@ -85,6 +85,7 @@ - session.type = "component"; - module:log("info", "External component successfully authenticated"); - session.send(st.stanza("handshake")); - + module:fire_event("component-authenticated", { session = session }); - - return true; - end - -Then, at the root of prosody, enter: - -`patch -p1 < /tmp/component.patch` - Usage ===== @@ -98,8 +78,28 @@ Compatibility ============= +If you use it with Prosody 0.9 and a component, you need to patch +core/mod\_component.lua to fire a new signal. To do it, copy the +following patch in a, for example, /tmp/component.patch file: + + diff --git a/plugins/mod_component.lua b/plugins/mod_component.lua + --- a/plugins/mod_component.lua + +++ b/plugins/mod_component.lua + @@ -85,6 +85,7 @@ + session.type = "component"; + module:log("info", "External component successfully authenticated"); + session.send(st.stanza("handshake")); + + module:fire_event("component-authenticated", { session = session }); + + return true; + end + +Then, at the root of prosody, enter: + +`patch -p1 < /tmp/component.patch` + ----- ---------------------------------------------------- - dev Need a patched core/mod\_component.lua (see above) + 0.10 Works 0.9 Need a patched core/mod\_component.lua (see above) ----- ----------------------------------------------------