This commit is contained in:
cx uname 2013-01-29 23:54:05 +04:00
parent ca0f779fc2
commit 148649e632
1 changed files with 3 additions and 0 deletions

View File

@ -98,6 +98,9 @@ start:
func SelfHandler(Conn *xmpp.Conn, Msg *xmpp.ClientMessage) {
Msg.Body = strings.TrimSpace(Msg.Body)
Conn.Send(room, "groupchat", Msg.Body)
if Msg.From == me+"/gsend" {
return
}
Strip(&Msg.Body, &Msg.From)
if err := exec.Command("bash", "-c", GetCommand("!"+Msg.Body, Msg.From, "./func/")).Run(); err != nil {
log.Println(err)