From c8895b57d1b2c0cdfbf5637d6dd27f2fbfd6186a Mon Sep 17 00:00:00 2001 From: Nauzhror Date: Sun, 28 Jan 2018 10:49:00 -0500 Subject: [PATCH] do_commands fix (#40) * Added %log%, and made %send%, %echo%, etc. not force capitalization. * Fixed Previous Commit * Really fixed this time. * Fixed look 2.mail Also reverted CMMAND_TERMS, was increased in previous commit when it didn't need to be due to the removed of marena. * Fixed add_to_lookup_table Fixed as per Welcor https://www.tbamud.com/forum/2-general/4307-crash-bug-need-assistance-with-gdb?start=20#7390 * Fixed two crash bugs Fixed tw crash bugs Welcor found here https://www.tbamud.com/forum/4-development/4300-simple-list-forced-to-reset-itself * wizhelp changes Cleared buf in columns_list that was getting garbage data in it. Removed wizhelp subcommand from do_commands, and removed buf and sprintf line that were never sent to anyone and replaced it with a send_to_char. Removed arg capability from do_commands as it's no longer useful without the wizhelp subcommand. Replaced wizhelp subcommand with separate do_wizhelp command that sorts commands by their level and shows all imms all imm commands regardless of their level. * Fix Fixed previous commit --- src/act.informative.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/act.informative.c b/src/act.informative.c index 06363ac..df4e3a9 100644 --- a/src/act.informative.c +++ b/src/act.informative.c @@ -2229,7 +2229,8 @@ ACMD(do_commands) i = cmd_sort_info[cmd_num]; - if (complete_cmd_info[i].minimum_level < 0 || GET_LEVEL(vict) < complete_cmd_info[i].minimum_level) + if (complete_cmd_info[i].minimum_level < 0 || GET_LEVEL(ch) < complete_cmd_info[i].minimum_level) + continue; if (complete_cmd_info[i].minimum_level >= LVL_IMMORT)