Fixed title case on privacy message return

master
Matthieu Lalonde 5 years ago
parent ab75e0f89a
commit 2b4fce2e87

@ -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 {

Loading…
Cancel
Save