aboutsummaryrefslogtreecommitdiff
path: root/src/servercommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/servercommand.cpp')
-rw-r--r--src/servercommand.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/servercommand.cpp b/src/servercommand.cpp
index 333e29084..7d6d7bb73 100644
--- a/src/servercommand.cpp
+++ b/src/servercommand.cpp
@@ -142,9 +142,16 @@ 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->params[2]);*/
+
+ std::string confline = wide_to_narrow(ctx->paramstring);
+
g_settings.parseConfigLine(confline);
- os<< L"-!- Setting changed.";
+
+ ctx->server->saveConfig();
+
+ os<< L"-!- Setting changed and configuration saved.";
}
void cmd_teleport(std::wostringstream &os,