Re: [CODE] Command abbreviations

From: Torgny Bjers (tb@sbbs.se)
Date: 09/01/00


----- Original Message -----
From: "Dana Luther" <dtluther@mindspring.com>

>
> Yes, it's your isname. Notice the line which reads is_abbrev(str, curtok).
> Now you get to choose - You can change your isname so that you can't use
the
> abbreviations (which would affect everthing and is not the best idea in my
> opinion), or you can use an alternate isname for your help related
functions
> (namely the find_help and the function in the hedit which calls isname()
to
> decide which help entry to edit).
> In the hedit patch was a copy of the original isname. What I did was copy
> that in as orig_isname and use that instead of isname() in the hedit and
> find_help. This enables you to have your abbreviated name search
> capabilities for everything else, and use exact name comparison for your
> help files.
>
> Maybe not the best solution, but it certainly does work. ;)
>
> Dana

Great idea... Why didn't I think of that?  I actually have the old isname
commented out, I have my bright moments.  Knew I saved it for some reason,
just couldn't think of it now, several months later. ;)  Thanks Dana!

Regards,
/Torgny


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



This archive was generated by hypermail 2b30 : 04/11/01 PDT