Comparison

prosodyctl @ 13648:0b37ce3e40cd

prosodyctl: reload: Remove redundant require
author Matthew Wild <mwild1@gmail.com>
date Thu, 06 Feb 2025 14:45:56 +0000
parent 13646:4e7ac0e8dfc4
child 13649:d2969e163656
comparison
equal deleted inserted replaced
13647:2b3d49936518 13648:0b37ce3e40cd
508 508
509 local shell = require "prosody.util.prosodyctl.shell"; 509 local shell = require "prosody.util.prosodyctl.shell";
510 if shell.available() then 510 if shell.available() then
511 if arg[1] and arg[1]:match"^mod_" then 511 if arg[1] and arg[1]:match"^mod_" then
512 -- TODO reword the usage text, document 512 -- TODO reword the usage text, document
513 local shell = require "prosody.util.prosodyctl.shell";
514 arg[1] = arg[1]:match("^mod_(.*)"); -- strip mod_ prefix 513 arg[1] = arg[1]:match("^mod_(.*)"); -- strip mod_ prefix
515 table.insert(arg, 1, "module"); 514 table.insert(arg, 1, "module");
516 table.insert(arg, 2, "reload"); 515 table.insert(arg, 2, "reload");
517 return shell.shell(arg); 516 return shell.shell(arg);
518 end 517 end