From 1aafb3a33a9279ad7141e3bf0bb6c1815d57e979 Mon Sep 17 00:00:00 2001 From: Sandertv Date: Wed, 27 Nov 2024 19:35:00 +0100 Subject: [PATCH] cmd/command.go: Fixed inverted check. --- server/cmd/command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/cmd/command.go b/server/cmd/command.go index 329212009..af1da1d14 100644 --- a/server/cmd/command.go +++ b/server/cmd/command.go @@ -67,7 +67,7 @@ func New(name, description string, aliases []string, r ...Runnable) Command { usages := make([]string, len(r)) runnableValues := make([]reflect.Value, len(r)) - if len(aliases) > 0 && slices.Index(aliases, name) != -1 { + if len(aliases) > 0 && slices.Index(aliases, name) == -1 { aliases = append(aliases, name) }