Notify player whose password is being changed

This commit is contained in:
Kahrl 2011-11-21 01:35:44 +01:00 committed by Perttu Ahola
parent 3965d432ca
commit 189689716c

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