Please enter the commit message for your changes.

这个提交包含在:
cx uname 2013-06-06 14:42:05 +04:00
父节点 1f109203c3
当前提交 33f32920ee
共有 1 个文件被更改,包括 0 次插入1 次删除

查看文件

@ -127,7 +127,6 @@ func MessageHandler(Conn *xmpp.Conn, Msg *xmpp.ClientMessage) {
}
case f("^\\!", &Msg.Body): //any external command
Strip(&Msg.Body, &Msg.From)
log.Println(GetCommand(Msg.Body, Msg.From, "./plugins/"))
cmd := exec.Command("bash", "-c", GetCommand(Msg.Body, Msg.From, "./plugins/"))
stdout, _ := cmd.StdoutPipe()
stderr, _ := cmd.StderrPipe()