Added %log% command, and made capitalization up to the builders discretion in various trigedit messages. (#35)

* Added %log%, and made %send%, %echo%, etc. not force capitalization.

* Fixed Previous Commit

* Really fixed this time.
This commit is contained in:
Nauzhror 2018-01-15 15:37:42 -05:00 committed by wyld-sw
parent 512fd64d65
commit 023348b0a0
8 changed files with 51 additions and 3 deletions

View file

@ -45,6 +45,7 @@ static OCMD(do_odoor);
static OCMD(do_osetval);
static OCMD(do_oat);
static OCMD(do_omove);
static OCMD(do_olog);
struct obj_command_info {
char *command;
@ -154,6 +155,14 @@ static OCMD(do_oecho)
obj_log(obj, "oecho called by object in NOWHERE");
}
static OCMD(do_olog)
{
skip_spaces(&argument);
if (*argument)
obj_log(obj, argument);
}
static OCMD(do_oforce)
{
char_data *ch, *next_ch;
@ -805,6 +814,7 @@ static const struct obj_command_info obj_cmd_info[] = {
{ "otransform " , do_otransform, 0 },
{ "ozoneecho " , do_ozoneecho , 0 }, /* fix by Rumble */
{ "omove " , do_omove , 0 },
{ "olog " , do_olog , 0 },
{ "\n", 0, 0 } /* this must be last */
};