X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=if.lisp;h=f3403dc58c8721186d5bfb2252a57e525799c632;hb=d692a63792c9a1decb6b70882664ecd07dadc961;hp=5664a60d9a1eddba65200111c3cf5a758c1b9481;hpb=f590c554e7d2e0eaf32377427416a29f69a74034;p=lifp.git diff --git a/if.lisp b/if.lisp index 5664a60..f3403dc 100644 --- a/if.lisp +++ b/if.lisp @@ -958,14 +958,15 @@ word in dictionary, add it." ;;React after? t) -(defun run-action (action args &key (time 0)) +(defun run-action (action args &key (time 0) no-output) "Run an action with a given args" (unless (listp args) (setf args (list args))) (setf *after* nil) (let ((*action* action) (*args* args) (*noun* (first args)) - (*second* (second args))) + (*second* (second args)) + (*no-output* no-output)) (when *debug* (format t "[running action: ~a ~a]~%" *action* *args*)) (when *meta* ;;Just do the darn thing!