mirror of
https://github.com/stryan/mumble-discord-bridge.git
synced 2024-11-14 11:45:40 -05:00
actually add users in initial run
This commit is contained in:
parent
ab1046838c
commit
8e2fe4f3b7
@ -113,11 +113,12 @@ func startBridge(discord *discordgo.Session, discordGID string, discordCID strin
|
||||
u, err := discord.User(vs.UserID)
|
||||
if err != nil {
|
||||
log.Println("error looking up username")
|
||||
Bridge.DiscordUsers[u.Username] = true
|
||||
Bridge.Client.Do(func() {
|
||||
Bridge.Client.Self.Channel.Send(fmt.Sprintf("%v has joined Discord channel\n", u.Username), false)
|
||||
})
|
||||
continue
|
||||
}
|
||||
Bridge.DiscordUsers[u.Username] = true
|
||||
Bridge.Client.Do(func() {
|
||||
Bridge.Client.Self.Channel.Send(fmt.Sprintf("%v has joined Discord channel\n", u.Username), false)
|
||||
})
|
||||
}
|
||||
}
|
||||
Bridge.Connected = true
|
||||
|
Loading…
Reference in New Issue
Block a user