diff --git a/src/TLuaInterpreter.cpp b/src/TLuaInterpreter.cpp index 3a053c2360a..2820a347cc9 100644 --- a/src/TLuaInterpreter.cpp +++ b/src/TLuaInterpreter.cpp @@ -7253,6 +7253,10 @@ int TLuaInterpreter::setConfig(lua_State * L) host.mBoldIsBright = getVerifiedBool(L, __func__, 2, "value"); return success(); } + if (key == qsl("logInHTML")) { + host.mIsNextLogFileInHtmlFormat = getVerifiedBool(L, __func__, 2, "value"); + return success(); + } return warnArgumentValue(L, __func__, qsl("'%1' isn't a valid configuration option").arg(key)); } @@ -7361,7 +7365,8 @@ int TLuaInterpreter::getConfig(lua_State *L) lua_pushstring(L, "asis"); } } }, - { qsl("boldIsBright"), [&](){ lua_pushboolean(L, host.mBoldIsBright); } } //, <- not needed until another one is added + { qsl("boldIsBright"), [&](){ lua_pushboolean(L, host.mBoldIsBright); } }, + { qsl("logInHTML"), [&](){ lua_pushboolean(L, host.mIsNextLogFileInHtmlFormat); } } //, <- not needed until another one is added }; auto it = configMap.find(key); diff --git a/src/mudlet-lua/lua/Other.lua b/src/mudlet-lua/lua/Other.lua index 211f81df867..41b7698011f 100644 --- a/src/mudlet-lua/lua/Other.lua +++ b/src/mudlet-lua/lua/Other.lua @@ -1250,6 +1250,7 @@ function getConfig(...) "fixUnnecessaryLinebreaks", "forceNewEnvironNegotiationOff", "inputLineStrictUnixEndings", + "logInHTML", "mapExitSize", "mapperPanelVisible", "mapRoomSize",