hack.cpp: execute extra commands from environment variable

This commit is contained in:
Unnamed 2019-02-14 09:19:57 +00:00 committed by TotallyNotElite
parent 67d6e7d54a
commit 8135f67396

View File

@ -345,6 +345,9 @@ free(logname);*/
hack::command_stack().push("exec cat_autoexec_textmode");
#endif
hack::command_stack().push("exec cat_autoexec");
auto extra_exec = std::getenv("CH_EXEC");
if (extra_exec)
hack::command_stack().push(extra_exec);
hack::command_stack().push("cat_killsay_reload");
hack::command_stack().push("cat_spam_reload");