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? example: 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) break; 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)) break; } Right? I'm sure I did something like this at one point. PjD +------------------------------------------------------------+ | 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/08/00 PST