diff --git a/chat/sanitize.go b/chat/sanitize.go index b567825..cb19bb0 100644 --- a/chat/sanitize.go +++ b/chat/sanitize.go @@ -3,6 +3,7 @@ package chat import "regexp" var reStripName = regexp.MustCompile("[^\\w.-]") + const maxLength = 16 // SanitizeName returns a name with only allowed characters and a reasonable length