Re: [CODE] Finding word in string

From: Stephen Wolfe (siv@CYBERENET.NET)
Date: 09/13/98


> Er, ok, It worked, until I tried to goto to a soldier. I misspelled the
> argument of goto and accidently types go solf, and the MUD crashed. It
> looks like if someone writes an argument that doesn't exist, the MUD will
> crash. What can be wrong?

i think that mobs don't have titles..and isname doesn't check for null
strings..just add in this check at the top of the isname func..

if (!*namelist)
  return 0;

siv


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST