From 9edc568e16741d443b67fbd23b0d91790085ced9 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Tue, 9 Jun 2026 17:15:13 -0400 Subject: combat, mobs, parsing, toggles, hard disconnect handling --- internal/object/item.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/object/item.go') diff --git a/internal/object/item.go b/internal/object/item.go index 67a2998..84e43b1 100644 --- a/internal/object/item.go +++ b/internal/object/item.go @@ -53,8 +53,8 @@ func (d *ItemDef) MatchesName(input string) bool { if strings.ToLower(d.Name) == lower { return true } - for _, a := range d.Aliases { - if strings.ToLower(a) == lower { + for _, word := range strings.Fields(d.Name) { + if strings.HasPrefix(strings.ToLower(word), lower) { return true } } -- cgit v1.2.3