From ac862d8d185e42350da9921743dbee6f13f07dc2 Mon Sep 17 00:00:00 2001 From: Etzelia Date: Sat, 17 Jul 2021 19:51:15 +0000 Subject: [PATCH] Ignore self in register (#13) Ignore self in register Signed-off-by: Etzelia Reviewed-on: https://git.canopymc.net/Etzelia/canopeas/pulls/13 Reviewed-by: ZeroHD Co-Authored-By: Etzelia Co-Committed-By: Etzelia --- discord/register.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/register.go b/discord/register.go index b844857..e1fb0e4 100644 --- a/discord/register.go +++ b/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 } }