mirror of
https://github.com/stryan/mumble-discord-bridge.git
synced 2024-11-23 05:45:41 -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 {
|
for _, vs := range g.VoiceStates {
|
||||||
if vs.ChannelID == l.Bridge.BridgeConfig.CID {
|
if vs.ChannelID == l.Bridge.BridgeConfig.CID {
|
||||||
|
if s.State.User.ID == vs.UserID {
|
||||||
|
// Ignore bot
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
u, err := s.User(vs.UserID)
|
u, err := s.User(vs.UserID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user