diff options
author | Jo?o Duarte <jvsDuarte08@gmail.com> | 2019-07-23 10:24:55 -0700 |
---|---|---|
committer | Jo?o Duarte <jvsDuarte08@gmail.com> | 2019-07-23 10:24:55 -0700 |
commit | 86016bed9b3d17207b4e29b6b3fe3c700cf16abb (patch) | |
tree | 78f8ac19bf7e71fab85f2579d7d1ae9c6ce5890f /util/prosodyctl.lua | |
parent | 6c44ec5dbbc2b699c0e29e6528ce9f7c8765623f (diff) | |
download | prosody-86016bed9b3d17207b4e29b6b3fe3c700cf16abb.tar.gz prosody-86016bed9b3d17207b4e29b6b3fe3c700cf16abb.zip |
util.prosodyctl: Added the show_module_configuration_help function
Diffstat (limited to 'util/prosodyctl.lua')
-rw-r--r-- | util/prosodyctl.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua index 6f7bf065..84f65665 100644 --- a/util/prosodyctl.lua +++ b/util/prosodyctl.lua @@ -39,6 +39,16 @@ local function show_usage(usage, desc) 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 @@ return { 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; |