aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2011-11-21 01:35:44 +0100
committerPerttu Ahola <celeron55@gmail.com>2011-12-03 11:47:19 +0200
commit189689716cca8959f8eb8851a37ef16fdbc0584d (patch)
tree91ab5502563600cb0b0de0b978a1e1c2aa96853c
parent3965d432ca461f9ac292d639a1df886d6e5a2da1 (diff)
downloadminetest-189689716cca8959f8eb8851a37ef16fdbc0584d.tar.gz
minetest-189689716cca8959f8eb8851a37ef16fdbc0584d.tar.bz2
minetest-189689716cca8959f8eb8851a37ef16fdbc0584d.zip
Notify player whose password is being changed
-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";
}