Ignore self in register #13

Merged
Etzelia merged 1 commits from refs/pull/13/head into main 2021-07-17 19:51:16 +00:00
1 changed files with 1 additions and 1 deletions

View File

@ -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
}
}