Skip to content

Commit

Permalink
fixed ghostping warning
Browse files Browse the repository at this point in the history
  • Loading branch information
zekroTJA committed Feb 2, 2019
1 parent 4c77f67 commit 304f65d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/listeners/ghostping.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (l *ListenerGhostPing) Handler(s *discordgo.Session, e *discordgo.MessageCr
return
}

uPinged := e.Mentions[0]
uPinged := deletedMsg.Mentions[0]

gpMsg = strings.Replace(gpMsg, "{pinger}", deletedMsg.Author.Mention(), -1)
gpMsg = strings.Replace(gpMsg, "{pinged}", uPinged.Mention(), -1)
Expand Down

0 comments on commit 304f65d

Please sign in to comment.