1
0
mirror of https://github.com/stryan/mumble-discord-bridge.git synced 2024-12-28 17:15:40 -05:00

mumble-bot exclude self from user map

This commit is contained in:
Tyler Stiene 2021-01-19 01:19:45 -05:00
parent 3ef9fc40bf
commit 79f305cec1

View File

@ -35,6 +35,10 @@ func (l *DiscordListener) ready(s *discordgo.Session, event *discordgo.Ready) {
for _, vs := range g.VoiceStates {
if vs.ChannelID == l.Bridge.BridgeConfig.CID {
if s.State.User.ID == vs.UserID {
// Ignore bot
continue
}
u, err := s.User(vs.UserID)
if err != nil {