# HG changeset patch # User Emmanuel Gil Peyrot # Date 1534610328 -3600 # Node ID 420ebea00cf33f3210332a314142f3e55b96df27 # Parent 73906187f964eb975e54e799a949342e09fd9c24 mod_default_bookmarks: Add support for . diff -r 73906187f964 -r 420ebea00cf3 mod_default_bookmarks/README.markdown --- a/mod_default_bookmarks/README.markdown Sat Aug 18 17:36:50 2018 +0100 +++ b/mod_default_bookmarks/README.markdown Sat Aug 18 17:38:48 2018 +0100 @@ -33,7 +33,8 @@ default_bookmarks = { { jid = "room@conference.example.com", name = "The Room" }; - { jid = "another-room@conference.example.com", name = "The Other 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 }; diff -r 73906187f964 -r 420ebea00cf3 mod_default_bookmarks/mod_default_bookmarks.lua --- a/mod_default_bookmarks/mod_default_bookmarks.lua Sat Aug 18 17:36:50 2018 +0100 +++ b/mod_default_bookmarks/mod_default_bookmarks.lua Sat Aug 18 17:38:48 2018 +0100 @@ -40,6 +40,9 @@ if nick then reply:add_child(nick):up(); end + if bookmark.password then + reply:tag("password"):text(bookmark.password):up(); + end reply:up(); end return reply;