Subject: Verb preposition oddity

From: [email-masked] (Michael McAleese)
Date: Tue, 20 Jul 1993 20:41:07 -0700

I have MOO just compiled and working on my 486/Linux box and everything
seemed to be working fine, until I tried to start some programming.  It 
seems that MOO can't find the list of valid prepositions for verbs, it 
rejects all of the list of defined prepositions except for "any".  Thus
while "@verb $player:tester this to any" fails with a message that "to" is
not a valid preposition, "@verb $player:tester this any any" does work.
There were no amazing warning messages when compiling (I compiled it again
from the LambdaMOO.1.7.0 source just to be sure), just some warnings from
gcc that I assumed were the usual overly pedantic gcc warnings.  Has this
ever happened before?  Anybody have any ideas what I have done wrong or 
might need to do to get it working normally?

---

From: Pavel Curtis <[email-masked]>
Date: Wed, 21 Jul 1993 09:23:58 -0700

> Date:	Tue, 20 Jul 1993 20:41:07 -0700
> From:	[email-masked] (Michael McAleese)
> 
> rejects all of the list of defined prepositions except for "any".

I thought I had posted a patch for this before, but I couldn't find it in the
archives, so here it is (again?):

In parse_cmd.c, near the end of the function match_prep(), change the code like
this:

      parse_into_words(s, &argc, argv);
      free_str(s);
      return prep_find(argc, argv, 0, 0);

into this:

      parse_into_words(s, &argc, argv);
      prep = prep_find(argc, argv, 0, 0);
      free_str(s);
      return prep;

This should fix the problem you're having.

	Pavel