From 2b4fce2e8788ffd371cc0c6ffb83a5d1eeb77cad Mon Sep 17 00:00:00 2001 From: Matthieu Lalonde Date: Mon, 1 Feb 2021 21:42:32 +0000 Subject: [PATCH] Fixed title case on privacy message return --- pkg/bot/handlers.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/bot/handlers.go b/pkg/bot/handlers.go index c4af0e6..231a233 100644 --- a/pkg/bot/handlers.go +++ b/pkg/bot/handlers.go @@ -299,8 +299,7 @@ func (b *Type) handleUserPrivacy(ds *discordgo.Session, dm *discordgo.Message, c } else { uu.Privacy = upSet(uu.Privacy, userPrivacyFromString(pp)) } - // XXX - pr := strings.ToTitle(pa) + " " + pp + ". Privacy mode: " + pr := strings.Title(pa) + " " + pp + ". Privacy mode: " if uu.Privacy == userPrivacyAll { pr += userPrivacyAll.String() } else if uu.Privacy == userPrivacyNone {