aboutsummaryrefslogtreecommitdiff
path: root/chat.go
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2021-09-09 20:40:36 +0200
committerHimbeerserverDE <himbeerserverde@gmail.com>2021-09-09 20:40:36 +0200
commite87116961b69c3344ab30fa287d92f82a608c1c5 (patch)
treeb680bec88293fe738ea7035b80b5128ffeea7c2c /chat.go
parentf73ace1e2c04c607795debb9646a047d3766f06c (diff)
Make SendChatMsg variadic
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(),
})
}