# HG changeset patch # User Matthew Wild # Date 1338069219 -3600 # Node ID dcddd91950983c7ddf1a7c55bb11a955118c87c5 # Parent 429be98872dcc322ad51983044bc404b5c920778 mod_group_bookmarks: Log error when group_bookmarks_file not specified diff -r 429be98872dc -r dcddd9195098 mod_group_bookmarks/mod_group_bookmarks.lua --- a/mod_group_bookmarks/mod_group_bookmarks.lua Sat May 26 11:37:44 2012 +0000 +++ b/mod_group_bookmarks/mod_group_bookmarks.lua Sat May 26 22:53:39 2012 +0100 @@ -75,11 +75,16 @@ end, 1); function module.load() - bookmarks_file = config.get(module:get_host(), "core", "group_bookmarks_file"); - if not bookmarks_file then return; end - + bookmarks_file = module:get_option_string("group_bookmarks_file"); + rooms = { default = {} }; members = { }; + + if not bookmarks_file then + module:log("error", "Please specify group_bookmarks_file in your configuration"); + return; + end + local curr_room; for line in io.lines(bookmarks_file) do if line:match("^%s*%[.-%]%s*$") then