Changeset

5613:39bb7232326d

mod_default_bookmarks: Include 'autojoin' in examples The text does mention this, but who reads that?
author Kim Alvefur <zash@zash.se>
date Mon, 17 Jul 2023 16:40:45 +0200
parents 5612:17aa3bac7f3a
children 5614:ad9b8f659c96
files mod_default_bookmarks/README.markdown
diffstat 1 files changed, 9 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/mod_default_bookmarks/README.markdown	Sat Jul 15 12:27:24 2023 +0200
+++ b/mod_default_bookmarks/README.markdown	Mon Jul 17 16:40:45 2023 +0200
@@ -31,13 +31,15 @@
 
 Then add a list of the default rooms you want:
 
-    default_bookmarks = {
-        { jid = "room@conference.example.com", name = "The Room" };
-        -- Specifying a password is supported:
-        { jid = "secret-room@conference.example.com", name = "A Secret Room", password = "secret" };
-        -- You can also use this compact syntax:
-        "yetanother@conference.example.com"; -- this will get "yetanother" as name
-    };
+``` lua
+default_bookmarks = {
+    { jid = "room@conference.example.com"; name = "The Room"; autojoin = true };
+    -- Specifying a password is supported:
+    { jid = "secret-room@conference.example.com"; name = "A Secret Room"; password = "secret"; autojoin = true };
+    -- You can also use this compact syntax:
+    "yetanother@conference.example.com"; -- this will get "yetanother" as name
+};
+```
 
 Compatibility
 -------------