Compare commits

..

2 Commits

View File

@ -34,7 +34,7 @@ var joinMessages = []string{
"<@%s> has joined <#%s>",
"<@%s> has joined <#%s>; Join in for some nerd talk",
"<#%[2]s> is the place to be! <@%[1]s> just joined",
"<#%[2]s> just go a bit cooler, <@%[1]s> is now in",
"<#%[2]s> just got a bit cooler, <@%[1]s> is now in",
"<@%s> is hanging out in <#%s>",
}
@ -140,6 +140,10 @@ func (s *Server) voiceStatus(ds *discordgo.Session, m *discordgo.VoiceStateUpdat
case len(m.ChannelID) == 0:
state = Leaving
case m.BeforeUpdate != nil:
if m.BeforeUpdate.ChannelID == m.ChannelID {
// Action like muting caused new voice state, but in the same channel.
return
}
state = Switching
}