Comparison

prosodyctl @ 10123:5d132d4aac55

prosodyctl: The 'test' function now also prints which plugins are enabled
author João Duarte <jvsDuarte08@gmail.com>
date Fri, 07 Jun 2019 11:46:19 +0100
parent 10122:95814c597836
child 10124:5a3611218709
comparison
equal deleted inserted replaced
10122:95814c597836 10123:5d132d4aac55
85 local commands = {}; 85 local commands = {};
86 local command = table.remove(arg, 1); 86 local command = table.remove(arg, 1);
87 87
88 function commands.test() 88 function commands.test()
89 show_message [[Well, hello there!]] 89 show_message [[Well, hello there!]]
90 --show_message [[Enabled Plugins: ], modulemanager.get_modules_for_host()]
91 show_warning("Trying to peek at the plugin directory: '%s'", modulemanager.get_modules_for_host())
90 end 92 end
91 93
92 function commands.adduser(arg) 94 function commands.adduser(arg)
93 if not arg[1] or arg[1] == "--help" then 95 if not arg[1] or arg[1] == "--help" then
94 show_usage([[adduser JID]], [[Create the specified user account in Prosody]]); 96 show_usage([[adduser JID]], [[Create the specified user account in Prosody]]);