fuzzball-muck / fuzzball

Ongoing development of the Fuzzball MUCK server software and associated functionality.
Other
47 stars 27 forks source link

{contents} MPI function does not behave as documented / nonsense exits behavior #667

Closed tanabi closed 1 year ago

tanabi commented 2 years ago

According to the documentation, the {contents} MPI call supports exits. For instance, you can do:

{contents:here,exit} and it will work.

However, this will always return nothing because exits aren't contents. They have their own linked list that {contents} doesn't check.

The solution here is to update the documentation to indicate that exits should be checked with the {exits} macro and remove mention of the 'exits' parameter to 'contents'. 'contents' should probably throw an error directing people to use 'exits' if you pass 'exits' as a parameter to it.

wyld-sw commented 1 year ago

Solved as suggested via #679.