1
0
mirror of https://github.com/stryan/mumble-discord-bridge.git synced 2024-11-22 21:35:44 -05:00

Merge pull request #28 from Brottweiler/patch-1

Tweak grammar when no users are in mumble
This commit is contained in:
Tyler Stiene 2021-12-05 17:50:03 -05:00 committed by GitHub
commit df2a477147
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -259,7 +259,7 @@ func (b *BridgeState) DiscordStatusUpdate() {
b.MumbleUserCount = b.MumbleUserCount - 1 b.MumbleUserCount = b.MumbleUserCount - 1
} }
if b.MumbleUserCount == 0 { if b.MumbleUserCount == 0 {
status = "No users in Mumble" status = "no users in Mumble"
} else { } else {
if len(b.MumbleUsers) > 0 { if len(b.MumbleUsers) > 0 {
status = fmt.Sprintf("%v/%v users in Mumble\n", len(b.MumbleUsers), b.MumbleUserCount) status = fmt.Sprintf("%v/%v users in Mumble\n", len(b.MumbleUsers), b.MumbleUserCount)