Skip to content

Commit

Permalink
Removed unnecessary brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
Victonator authored Mar 26, 2022
1 parent 09e8596 commit 4b875b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/commands/game/lookForPlayers.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ func (l *LookCommand) handleBtnClick(s *discordgo.Session, i *discordgo.Interact
hostID, neededPlayers, playersIDs, backupPlayersIDs := l.getPlayers(message)
_, activePlayers := l.buildBackup(message, playersIDs, neededPlayers)
//If host of LFP or gamer admin
if (uid == hostID) || sudo.IsItfGameAdmin(uid) {
if uid == hostID || sudo.IsItfGameAdmin(uid) {
if i.MessageComponentData().CustomID == "lfp_delete" {
//Delete message first to prevent players being notified multiple times when emoji spam (Dirk proofing)
err := s.ChannelMessageDelete(i.ChannelID, i.Message.ID)
Expand Down

0 comments on commit 4b875b7

Please sign in to comment.