aboutsummaryrefslogtreecommitdiff
path: root/chat.go
diff options
context:
space:
mode:
Diffstat (limited to 'chat.go')
-rw-r--r--chat.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/chat.go b/chat.go
index 8a10f05..61e8ca8 100644
--- a/chat.go
+++ b/chat.go
@@ -20,7 +20,7 @@ func (cc *ClientConn) SendChatMsg(msg ...string) {
// Colorize returns the minetest-colorized version of the input.
func Colorize(text, color string) string {
- return string(0x1b) + "(c@" + color + ")" + text + string(0x1b) + "(c@#FFF)"
+ return string([]rune{0x1b}) + "(c@" + color + ")" + text + string([]rune{0x1b}) + "(c@#FFF)"
}
func onChatMsg(cc *ClientConn, cmd *mt.ToSrvChatMsg) (string, bool) {