aboutsummaryrefslogtreecommitdiff
path: root/chat.go
diff options
context:
space:
mode:
Diffstat (limited to 'chat.go')
-rw-r--r--chat.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/chat.go b/chat.go
index ca306a5..5cae3db 100644
--- a/chat.go
+++ b/chat.go
@@ -8,10 +8,10 @@ import (
"github.com/anon55555/mt"
)
-func (cc *ClientConn) SendChatMsg(msg string) {
+func (cc *ClientConn) SendChatMsg(msg ...string) {
cc.SendCmd(&mt.ToCltChatMsg{
Type: mt.SysMsg,
- Text: msg,
+ Text: strings.Join(msg, " "),
Timestamp: time.Now().Unix(),
})
}