aboutsummaryrefslogtreecommitdiff
path: root/internal/object/item.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-09 17:15:13 -0400
committerhistoria <[not public]>2026-06-09 17:15:13 -0400
commit9edc568e16741d443b67fbd23b0d91790085ced9 (patch)
treed54be40531ba124dcf8299f9e94bfba4ece273ae /internal/object/item.go
parent56be6a3f45830594225a765b406816e6179ccde1 (diff)
downloadthehouseoficarus-9edc568e16741d443b67fbd23b0d91790085ced9.tar.gz
combat, mobs, parsing, toggles, hard disconnect handling
Diffstat (limited to 'internal/object/item.go')
-rw-r--r--internal/object/item.go4
1 files changed, 2 insertions, 2 deletions
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
}
}