Changeset

1992:8dda3d7d616f

mod_privilege: updated README
author Goffi <goffi@goffi.org>
date Mon, 21 Dec 2015 11:23:14 +0100
parents 1991:a1d5214bd369
children 1993:66aaf7c3cb29
files mod_privilege/README.markdown
diffstat 1 files changed, 23 insertions(+), 23 deletions(-) [+]
line wrap: on
line diff
--- a/mod_privilege/README.markdown	Mon Dec 21 10:59:44 2015 +0100
+++ b/mod_privilege/README.markdown	Mon Dec 21 11:23:14 2015 +0100
@@ -18,28 +18,6 @@
 You can have all the details by reading the
 [XEP-0356](http://xmpp.org/extensions/xep-0356.html).
 
-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:
-
-``` {.patch}
-    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
 =====
 
@@ -118,8 +96,30 @@
 Compatibility
 =============
 
+If you use it with Prosody 0.9 and 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:
+
+``` {.patch}
+    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)
   ----- ----------------------------------------------------