From 69a6416c1b0af5f161cca111f5738bea1909ae6c Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 13 Nov 2021 14:30:02 +0800 Subject: [PATCH] quotes --- bot.go | 2 +- ttd.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bot.go b/bot.go index ccf815e..ed9d79b 100644 --- a/bot.go +++ b/bot.go @@ -311,7 +311,7 @@ func botSay(m *tb.Message) { px := PacketAdminRCon{ Packet: Packet{PType: AdminPacketAdminRCon}, - Command: fmt.Sprintf("say %s", msg), + Command: fmt.Sprintf("say \"%s\"", msg), } srv.Send(px.Bytes()) diff --git a/ttd.go b/ttd.go index 30e41cb..86955d8 100644 --- a/ttd.go +++ b/ttd.go @@ -612,7 +612,7 @@ func (s *ServerTTD) ComputeClientTime() { bot.SendChat(cfg.Telegram.ChatID, msg) px := PacketAdminRCon{ Packet: Packet{PType: AdminPacketAdminRCon}, - Command: fmt.Sprintf("say %s", msg), + Command: fmt.Sprintf("say \"%s\"", msg), } srv.Send(px.Bytes()) } @@ -621,7 +621,7 @@ func (s *ServerTTD) ComputeClientTime() { bot.SendChat(cfg.Telegram.ChatID, msg) px := PacketAdminRCon{ Packet: Packet{PType: AdminPacketAdminRCon}, - Command: fmt.Sprintf("say %s", msg), + Command: fmt.Sprintf("say \"%s\"", msg), } srv.Send(px.Bytes()) }