From 148649e632d9071164aa2cfc603f110425c70cd9 Mon Sep 17 00:00:00 2001 From: cx uname Date: Tue, 29 Jan 2013 23:54:05 +0400 Subject: [PATCH] 123 --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index 2d46052..f18b643 100644 --- a/main.go +++ b/main.go @@ -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)