Fixed
This commit is contained in:
parent
daf3f31af2
commit
41b66885bd
|
@ -44,24 +44,24 @@ def sh(cmd)
|
||||||
end
|
end
|
||||||
end # def sh
|
end # def sh
|
||||||
|
|
||||||
def run2(cmd)
|
def run(cmd)
|
||||||
if cmd
|
if cmd
|
||||||
$world.sendln("emote LINUXes `#{cmd}`")
|
$world.sendln("emote LINUXes `#{cmd}`")
|
||||||
do_cmd(cmd) { |line| $world.sendln("emote | #{line}") }
|
do_cmd(cmd) { |line| $world.sendln("emote | #{line}") }
|
||||||
else
|
else
|
||||||
error("use /run2 <command>")
|
error("use /run <command>")
|
||||||
end
|
end
|
||||||
end # def run2
|
end # def run
|
||||||
|
|
||||||
def crun2(argstr)
|
def crun(argstr)
|
||||||
chan, cmd = argstr.split(/\s+/, 2)
|
chan, cmd = argstr.split(/\s+/, 2)
|
||||||
if chan and cmd
|
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}") }
|
do_cmd(cmd) { |line| $world.sendln("#{chan} emote | #{line}") }
|
||||||
else
|
else
|
||||||
error("use /crun2 <chanalias> <command>")
|
error("use /crun <chanalias> <command>")
|
||||||
end
|
end
|
||||||
end # def crun2
|
end # def crun
|
||||||
|
|
||||||
def pstrun(cmd)
|
def pstrun(cmd)
|
||||||
if cmd
|
if cmd
|
||||||
|
|
Reference in New Issue