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

@@ -257,6 +257,7 @@ void find_replacement(void *go, struct script_data *sc, trig_data *trig,
char *name;
int num, count, i, j, doors;
char *log_cmd[] = {"mlog ", "olog ", "wlog " };
char *send_cmd[] = {"msend ", "osend ", "wsend " };
char *echo_cmd[] = {"mecho ", "oecho ", "wecho " };
char *echoaround_cmd[] = {"mechoaround ", "oechoaround ", "wechoaround "};
@@ -343,6 +344,8 @@ void find_replacement(void *go, struct script_data *sc, trig_data *trig,
snprintf(str, slen, "%s", recho[type]);
else if (!str_cmp(var, "move"))
snprintf(str, slen, "%s", omove[type]);
else if (!str_cmp(var, "log"))
snprintf(str, slen, "%s", log_cmd[type]);
else
*str = '\0';
}