Re: hedit and multiple word help entries

From: George Greer (greerga@circlemud.org)
Date: 03/30/01


On Thu, 29 Mar 2001, Jennifer Harless wrote:

><snip>
>However, I'm still having a problem with multiple word help entries
>(e.g. "Color Spray").  I thought maybe it was something I did wrong,
><snip>
[...]
>i.e. - if isname reaches a space in curname, give up.  This still has
>to do with how the new do_help fron the hedit code looks for help
>entries (in the original circle code, it used a strn_cmp, I think,
>instead of isname).  Can anyone give me a clue as to what I should
>do to make this work, it's driving me nuts!

You might try just removing:
        *curname == ' '
from that condition.

The code will still terminate if the keyword to look for doesn't have a
space and it'll match any multiple word argument.  That'll break any call
like:

        isname("keybo wat", "water keyboard");

but I don't think we do those anyway (except maybe spell invocation,
you'll have to check).

If it really annoys people, I can rewrite the function to use one_word() to
get the keywords from the argument list.  Then you'd call:

        isname("\"colo[u]r spray\"", "colo[u]r spray");

as well as:

        isname("wat", "barrel water wood");

Might make more sense for spell invocation as well, but I'd have to look.

--
George Greer
greerga@circlemud.org

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/04/01 PST