mirror of
https://github.com/stryan/mumble-discord-bridge.git
synced 2024-11-14 11:45:40 -05:00
mumble-bot exclude self from user map
This commit is contained in:
parent
3ef9fc40bf
commit
79f305cec1
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user