# HG changeset patch # User João Duarte # Date 1563902695 25200 # Node ID 7e9c30eab11e71642861acd45d74aed869de026e # Parent e5803495500283ad65cb220b4e2a615f2a356859 util.prosodyctl: Added the show_module_configuration_help function diff -r e58034955002 -r 7e9c30eab11e util/prosodyctl.lua --- a/util/prosodyctl.lua Tue Jul 23 08:48:31 2019 -0700 +++ b/util/prosodyctl.lua Tue Jul 23 10:24:55 2019 -0700 @@ -39,6 +39,16 @@ end end +local function show_module_configuration_help(mod_name) + print("Done.") + print("If you installed a prosody plugin, don't forget to add its name under the 'modules_enabled' section inside your configuration file.") + print("Depending on the module, there might be further configuration steps required.") + print("") + print("More info about: ") + print(" modules_enabled: https://prosody.im/doc/modules_enabled") + print(" "..mod_name..": https://modules.prosody.im/"..mod_name..".html") +end + local function getchar(n) local stty_ret = os.execute("stty raw -echo 2>/dev/null"); local ok, char; @@ -303,6 +313,7 @@ show_message = show_message; show_warning = show_message; show_usage = show_usage; + show_module_configuration_help = show_module_configuration_help; getchar = getchar; getline = getline; getpass = getpass;