aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/servercommand.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/servercommand.cpp b/src/servercommand.cpp
index d971b18a0..e2e84bacb 100644
--- a/src/servercommand.cpp
+++ b/src/servercommand.cpp
@@ -326,6 +326,10 @@ void cmd_setclearpassword(std::wostringstream &os,
ctx->server->setPlayerPassword(playername, password);
+ std::wostringstream msg;
+ msg<<ctx->player->getName()<<L" changed your password";
+ ctx->server->notifyPlayer(playername.c_str(), msg.str());
+
os<<L"-!- Password change for "<<narrow_to_wide(playername)<<" successful";
}