Re: OLC Problems

From: Patrick J. Dughi (dughi@IMAXX.NET)
Date: 11/18/97

Just reviewing messages from the last few days, I was wondering, couldn't
you solve the following problem:

> > >1)  The socials are now sorted into the command list alphabetically
> > >    automatically, whereas before they were put in however you wanted
> > >    them to be.
> > >  Ex. if you type li (intended list), after the social editor
> > >    you get lick and I haven't found a way to get this fixed yet.
> > >

        By altering a little bit of code in command_interpreter() to
searching through the command list minus do_action (ie, socials) calls,
and only if it returns a failure THEN search through socials?


  for (length = strlen(arg), cmd = 0; *complete_cmd_info[cmd].command !='\n'; cmd++)
     if (!strncmp(complete_cmd_info[cmd].command, arg, length)
        && complete_cmd_info[cmd].command_pointer != do_action)
  if (*complete_cmd_info[cmd].command == '\n') {
   for (length = strlen(arg), cmd = 0; *complete_cmd_info[cmd].command != '\n'; cmd++)
   if (!strncmp(complete_cmd_info[cmd].command, arg, length))

        Right?  I'm sure I did something like this at one point.


     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

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