Browse Source

Ignore self in register (#13)

Ignore self in register

Signed-off-by: Etzelia <etzelia@hotmail.com>

Reviewed-on: https://git.canopymc.net/Etzelia/canopeas/pulls/13
Reviewed-by: ZeroHD <joey@ahines.net>
Co-Authored-By: Etzelia <etzelia@hotmail.com>
Co-Committed-By: Etzelia <etzelia@hotmail.com>
discord-sync latest
Etzelia 6 months ago
parent
commit
ac862d8d18
  1. 2
      discord/register.go

2
discord/register.go

@ -92,7 +92,7 @@ func init() {
if nick == "" {
}
nick = member.User.Username
if strings.EqualFold(nickname, nick) {
if strings.EqualFold(nickname, nick) && cmd.message.Author.ID != member.User.ID {
return "A member with that name already exists in this Discord. Please contact staff.", nil
}
}

Loading…
Cancel
Save