Please enter the commit message for your changes.

This commit is contained in:
cx uname 2013-06-06 14:42:05 +04:00
parent 1f109203c3
commit 33f32920ee
1 changed files with 0 additions and 1 deletions

View File

@ -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()