mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Notify player whose password is being changed
This commit is contained in:
		@@ -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";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user