Skip to content
Snippets Groups Projects
Commit 18968971 authored by Kahrl's avatar Kahrl Committed by Perttu Ahola
Browse files

Notify player whose password is being changed

parent 3965d432
No related branches found
No related tags found
No related merge requests found
......@@ -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";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment