Re: [code] help with forget

From: Daniel A. Koepke (dkoepke@california.com)
Date: 07/19/99


Today, Brian Williams spake to the list:

>   if (is_abbrev(argument, "all")) {

is_abbrev returns 1 ("true") if arg1 is an abbreviation of arg2.  So you
have the logic backwards since you follow this up with the code as if
something had not issued, "forget all."  But you probably don't want to do
is_abbrev(), anyway.  I recommend changing it to,

    if (str_cmp(argument, "all")) {

and then the logic is correct, as well.

-dak


     +------------------------------------------------------------+
     | 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 : 12/15/00 PST