Notify player whose password is being changed

master
Kahrl 2011-11-21 01:35:44 +01:00 committed by Perttu Ahola
parent 3965d432ca
commit 189689716c
1 changed files with 4 additions and 0 deletions

View File

@ -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";
}