diff --git a/scripts/run.rb b/scripts/run.rb index 0902f70..9119c11 100644 --- a/scripts/run.rb +++ b/scripts/run.rb @@ -44,24 +44,24 @@ def sh(cmd) end end # def sh -def run2(cmd) +def run(cmd) if cmd $world.sendln("emote LINUXes `#{cmd}`") do_cmd(cmd) { |line| $world.sendln("emote | #{line}") } else - error("use /run2 ") + error("use /run ") end -end # def run2 +end # def run -def crun2(argstr) +def crun(argstr) chan, cmd = argstr.split(/\s+/, 2) if chan and cmd - $world.sendln("#{cmd} emote LINUXes `#{argstr}`") + $world.sendln("#{chan} emote LINUXes `#{cmd}`") do_cmd(cmd) { |line| $world.sendln("#{chan} emote | #{line}") } else - error("use /crun2 ") + error("use /crun ") end -end # def crun2 +end # def crun def pstrun(cmd) if cmd