1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Added message of the day and made it properly configurable using /#setting (not saved to config file yet)

This commit is contained in:
Perttu Ahola 2011-07-30 19:31:33 +03:00
parent 4b0c3e4357
commit 9b294ffa7a
5 changed files with 65 additions and 3 deletions

View file

@ -142,7 +142,8 @@ void cmd_setting(std::wostringstream &os,
return;
}
std::string confline = wide_to_narrow(ctx->parms[1] + L" = " + ctx->parms[2]);
std::string confline = wide_to_narrow(
ctx->parms[1] + L" = " + ctx->paramstring);
g_settings.parseConfigLine(confline);
os<< L"-!- Setting changed.";
}