diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2021-09-09 20:40:36 +0200 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2021-09-09 20:40:36 +0200 |
commit | e87116961b69c3344ab30fa287d92f82a608c1c5 (patch) | |
tree | b680bec88293fe738ea7035b80b5128ffeea7c2c /chat.go | |
parent | f73ace1e2c04c607795debb9646a047d3766f06c (diff) |
Make SendChatMsg variadic
Diffstat (limited to 'chat.go')
-rw-r--r-- | chat.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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(), }) } |