1
0
mirror of https://github.com/stryan/mumble-discord-bridge.git synced 2024-11-14 11:45:40 -05:00

actually add user to set

This commit is contained in:
stryan 2021-01-04 20:53:03 -05:00
parent 04f56bd3e0
commit 8f5caaf834

View File

@ -154,6 +154,7 @@ func voiceUpdate(s *discordgo.Session, event *discordgo.VoiceStateUpdate) {
Bridge.CurrentChannel.Send(fmt.Sprintf("%v has joined Discord channel\n", u.Username), false)
}
Bridge.DiscordUserCount = Bridge.DiscordUserCount + 1
Bridge.DiscordUsers[u.Username] = true
}
if event.ChannelID == "" {
//leave event, trigger recount of active users