X-Git-Url: https://jxself.org/git/?p=mudsync.git;a=blobdiff_plain;f=mudsync%2Fcommand.scm;fp=mudsync%2Fcommand.scm;h=c8cf3624e3b24c5d9e63d5401551cd1b70e0b2b4;hp=6314c70fbcdc88e162b55af1c62d0e9373989aab;hb=72bb4674c8058ada141da9f62a866e06381a8228;hpb=60360817d9a1a4b7c3aa5d72484c46d292e402b4 diff --git a/mudsync/command.scm b/mudsync/command.scm index 6314c70..c8cf362 100644 --- a/mudsync/command.scm +++ b/mudsync/command.scm @@ -18,6 +18,7 @@ (define-module (mudsync command) #:use-module (mudsync parser) + #:use-module (mudsync utils) #:use-module (8sync actors) #:use-module (8sync rmeta-slot) #:use-module (srfi srfi-1) @@ -100,7 +101,7 @@ ;; @@: Should we allow fancier matching than this? ;; Let the actor itself pass along this whole method? (lambda* (goes-by #:key direct-obj) - (member direct-obj goes-by)) + (ci-member direct-obj goes-by)) action %default-priority obvious?)) @@ -123,9 +124,9 @@ (lambda* (goes-by #:key direct-obj indir-obj preposition) (if prepositions (and - (member indir-obj goes-by) - (member preposition prepositions)) - (member indir-obj goes-by))) + (ci-member indir-obj goes-by) + (ci-member preposition prepositions)) + (ci-member indir-obj goes-by))) action %high-priority obvious?)) @@ -137,9 +138,9 @@ (lambda* (goes-by #:key direct-obj indir-obj preposition) (if prepositions (and - (member direct-obj goes-by) - (member preposition prepositions)) - (member direct-obj goes-by))) + (ci-member direct-obj goes-by) + (ci-member preposition prepositions)) + (ci-member direct-obj goes-by))) action %high-priority obvious?)) @@ -178,7 +179,7 @@ (make-command verbs cmatch-direct-obj-greedy (lambda* (goes-by #:key direct-obj rest) - (member direct-obj goes-by)) + (ci-member direct-obj goes-by)) action %low-priority obvious?))