Ignore self in register

Signed-off-by: Etzelia <etzelia@hotmail.com>
pull/13/head
Etzelia 2021-07-17 12:13:30 -05:00
parent 74e49546fe
commit e5f1c2a4be
No known key found for this signature in database
GPG Key ID: 708511AE7ABC5314
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
}
}