mod_default_bookmarks/README.wiki
changeset 1786 29f3d6b7ad16
equal deleted inserted replaced
1785:12ac88940fe3 1786:29f3d6b7ad16
       
     1 #summary Default bookmarked chatrooms
       
     2 
       
     3 = Introduction =
       
     4 
       
     5 This module allows you to add default bookmarks for users.  It only kicks in when the user has no existing bookmarks, so users are free to add, change or remove them.
       
     6 
       
     7 = Details =
       
     8 
       
     9 Most clients support storing a private list of room "bookmarks" on the server. When they log in, they fetch this list and join any that are marked as "autojoin".  If this list is empty, as it would be for new users, this module would return the list supplied in the config.
       
    10 
       
    11 = Configuration =
       
    12 
       
    13 Add "default_bookmarks" to your modules_enabled list:
       
    14 {{{
       
    15     modules_enabled = {
       
    16                -- ...other modules here... --
       
    17                "default_bookmarks";
       
    18                -- ...maybe some more here... --
       
    19     }
       
    20 }}}
       
    21 
       
    22 Then add a list of the default rooms you want:
       
    23 
       
    24 {{{
       
    25 default_bookmarks = {
       
    26 	{ jid = "room@conference.example.com", name = "The Room" };
       
    27 	{ jid = "another-room@conference.example.com", name = "The Other Room" };
       
    28 	-- You can also use this compact syntax:
       
    29 	"yetanother@conference.example.com"; -- this will get "yetanother" as name
       
    30 };
       
    31 }}}