Changeset

1993:66aaf7c3cb29

mod_delegation: updated README
author Goffi <goffi@goffi.org>
date Mon, 21 Dec 2015 11:31:10 +0100
parents 1992:8dda3d7d616f
children 1994:f263fcf1b0ed
files mod_delegation/README.markdown
diffstat 1 files changed, 21 insertions(+), 21 deletions(-) [+]
line wrap: on
line diff
--- 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)
   ----- ----------------------------------------------------